Compare commits
No commits in common. "cbde52eb59e006eea45dede4f52396b9b3d8792d" and "485b565a3fb43f5529a9a6a2a26510daa69905ba" have entirely different histories.
cbde52eb59
...
485b565a3f
@ -32,12 +32,6 @@ def get_image(mb_id, ftv_api_key, artist_path):
|
||||
if response.status_code == 200:
|
||||
with open(os.path.join(artist_path, 'artist.jpg'), 'wb') as f:
|
||||
f.write(response.content)
|
||||
elif ('artistbackground' in ftv_data):
|
||||
art_url = ftv_data['artistbackground'][0]['url']
|
||||
response = requests.get(art_url)
|
||||
if (response.status_code == 200):
|
||||
with open(os.path.join(artist_path, 'artist.jpg'),'wb') as f:
|
||||
f.write(response.content)
|
||||
elif ('hdmusiclogo' in ftv_data):
|
||||
art_url = ftv_data['hdmusiclogo'][0]['url']
|
||||
response = requests.get(art_url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user