This commit is contained in:
parent
19ea61e339
commit
811cfc929e
@ -30,8 +30,7 @@ class APIInteractionResource(UserStoreResource):
|
|||||||
spotify_uri += "artist:"
|
spotify_uri += "artist:"
|
||||||
imagedata = spot_data[0]['images']
|
imagedata = spot_data[0]['images']
|
||||||
elif mb_type == "release":
|
elif mb_type == "release":
|
||||||
spot_data = self.spotify.search(q=querystring, type="artist", limit=1).get(
|
spot_data = self.spotify.search(q=querystring, type="artist", limit=1).get('albums')
|
||||||
'albums')
|
|
||||||
if not spot_data:
|
if not spot_data:
|
||||||
return None, None, None
|
return None, None, None
|
||||||
spot_data = spot_data['items']
|
spot_data = spot_data['items']
|
||||||
|
Loading…
Reference in New Issue
Block a user