diff --git a/src/resources/apiinteractionresource.py b/src/resources/apiinteractionresource.py index 6d29302..15a7b45 100644 --- a/src/resources/apiinteractionresource.py +++ b/src/resources/apiinteractionresource.py @@ -51,7 +51,7 @@ class APIInteractionResource(UserStoreResource): else: return spotify_uri, None, None - def getcoverimage(self, releaseid: str, itemtype: str, title: str, artist: str, + def getcoverimage(self, releaseid: str, itemtype: str, artist: str, title: str = "", album: str = "") -> tuple: if itemtype != "recording" and itemtype != "release": return None, None @@ -70,7 +70,7 @@ class APIInteractionResource(UserStoreResource): if 'artist-credit' in currrelease and currrelease['artist-credit']: retdata['artist'] = currrelease['artist-credit'][0]['artist']['name'] retdata['cover_url'], retdata['cover_url_small'] = self.getcoverimage( - itemid, 'release', title=retdata['title'], album=retdata.get('album'), + itemid, 'release', album=retdata.get('album'), artist=retdata.get('artist')) retdata['spotify_id'], _, _ = \ self.queryspotifyinfo('release', title=retdata['title'])