fix spotify query of albums
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
bf8759d176
commit
aab6e3e3cd
@ -30,7 +30,7 @@ class APIInteractionResource(UserStoreResource):
|
||||
spotify_uri += "artist:"
|
||||
imagedata = spot_data[0]['images']
|
||||
elif mb_type == "release":
|
||||
spot_data = self.spotify.search(q=querystring, type="artist", limit=1).get('albums')
|
||||
spot_data = self.spotify.search(q=querystring, type="album", limit=1).get('albums')
|
||||
if not spot_data:
|
||||
return None, None, None
|
||||
spot_data = spot_data['items']
|
||||
|
Loading…
Reference in New Issue
Block a user