From aab6e3e3cd9c2b42afdbe5e411f0d5f7e93e7c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 27 Nov 2020 02:48:11 +0100 Subject: [PATCH] fix spotify query of albums --- src/resources/apiinteractionresource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/apiinteractionresource.py b/src/resources/apiinteractionresource.py index b046627..908c84b 100644 --- a/src/resources/apiinteractionresource.py +++ b/src/resources/apiinteractionresource.py @@ -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']