From bcee8f56609be6a504a3381b26314bf0a80da0a7 Mon Sep 17 00:00:00 2001 From: krateng Date: Mon, 23 Oct 2023 16:15:11 +0200 Subject: [PATCH] Adjusted Spotify image fetching, GH-225 --- maloja/thirdparty/spotify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maloja/thirdparty/spotify.py b/maloja/thirdparty/spotify.py index 898b379..ae6639b 100644 --- a/maloja/thirdparty/spotify.py +++ b/maloja/thirdparty/spotify.py @@ -14,9 +14,9 @@ class Spotify(MetadataInterface): } metadata = { - "trackurl": "https://api.spotify.com/v1/search?q=artist:{artist}%20track:{title}&type=track&access_token={token}", - "albumurl": "https://api.spotify.com/v1/search?q=artist:{artist}%20album:{title}&type=album&access_token={token}", - "artisturl": "https://api.spotify.com/v1/search?q=artist:{artist}&type=artist&access_token={token}", + "trackurl": "https://api.spotify.com/v1/search?q={title}&artist:{artist}%20type=track&access_token={token}", + "albumurl": "https://api.spotify.com/v1/search?q={title}&artist:{artist}%20type=album&access_token={token}", + "artisturl": "https://api.spotify.com/v1/search?q={artist}&type=artist&access_token={token}", "response_type":"json", "response_parse_tree_track": ["tracks","items",0,"album","images",0,"url"], # use album art "response_parse_tree_album": ["albums","items",0,"images",0,"url"],