everything now has a cover url
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-11-26 17:51:18 +01:00
parent 1af3e094d9
commit e4cf442f7d

View File

@ -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: