mirror of
https://github.com/krateng/maloja.git
synced 2025-04-17 01:02:20 +03:00
Adjusted Spotify image fetching, GH-225
This commit is contained in:
parent
cf6f50169c
commit
bcee8f5660
6
maloja/thirdparty/spotify.py
vendored
6
maloja/thirdparty/spotify.py
vendored
@ -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"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user