everything now has a cover url
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1af3e094d9
commit
e4cf442f7d
@ -92,7 +92,7 @@ class SingleListApi(SpotifyUserStoreResource):
|
|||||||
currrlease = currrecording['recording']['release-list'][0]
|
currrlease = currrecording['recording']['release-list'][0]
|
||||||
currrec['album'] = currrlease['title']
|
currrec['album'] = currrlease['title']
|
||||||
try:
|
try:
|
||||||
imgurl = musicbrainzngs.get_image_list(recording['id'])['images']
|
imgurl = musicbrainzngs.get_image_list(currrlease['id'])['images']
|
||||||
if len(imgurl) > 0:
|
if len(imgurl) > 0:
|
||||||
currrec['cover_url'] = imgurl[0]['image']
|
currrec['cover_url'] = imgurl[0]['image']
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user