This commit is contained in:
parent
73c1636063
commit
ea76463739
@ -30,10 +30,10 @@ 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="album", limit=1).get('albums')
|
spot_data = self.spotify.search(q=querystring, type="album", limit=1)['albums']['items']
|
||||||
|
print(self.spotify.search(q=querystring, type="album", limit=1))
|
||||||
if not spot_data:
|
if not spot_data:
|
||||||
return None, None, None
|
return None, None, None
|
||||||
spot_data = spot_data['items']
|
|
||||||
spotify_uri += "album:"
|
spotify_uri += "album:"
|
||||||
imagedata = spot_data[0]['images']
|
imagedata = spot_data[0]['images']
|
||||||
elif mb_type == "work" or mb_type == "recording":
|
elif mb_type == "work" or mb_type == "recording":
|
||||||
|
Loading…
Reference in New Issue
Block a user