mirror of https://github.com/krateng/maloja.git
25 lines
733 B
Python
25 lines
733 B
Python
from . import MetadataInterface
|
|
|
|
class Deezer(MetadataInterface):
|
|
name = "Deezer"
|
|
identifier = "deezer"
|
|
|
|
settings = {
|
|
}
|
|
|
|
metadata = {
|
|
#"trackurl": "https://api.deezer.com/search?q={artist}%20{title}",
|
|
"artisturl": "https://api.deezer.com/search?q={artist}",
|
|
"albumurl": "https://api.deezer.com/search?q={artist}%20{title}",
|
|
"response_type":"json",
|
|
#"response_parse_tree_track": ["data",0,"album","cover_medium"],
|
|
"response_parse_tree_artist": ["data",0,"artist","picture_medium"],
|
|
"response_parse_tree_album": ["data",0,"album","cover_medium"],
|
|
"required_settings": [],
|
|
}
|
|
|
|
def get_image_track(self,track):
|
|
return None
|
|
# we can use the album pic from the track search,
|
|
# but should do so via maloja logic
|