mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2024-12-29 10:56:13 +00:00
Add search_music
This commit is contained in:
parent
c3263336a3
commit
d103f8ae72
10
deezer/gw.py
10
deezer/gw.py
|
@ -227,6 +227,16 @@ class GW:
|
||||||
"top_tracks": top_tracks
|
"top_tracks": top_tracks
|
||||||
})
|
})
|
||||||
|
|
||||||
|
def search_music(self, query, type, index=0, limit=10):
|
||||||
|
return self.api_call('search.music',
|
||||||
|
{
|
||||||
|
"query": query,
|
||||||
|
"filter": "ALL",
|
||||||
|
"output": type,
|
||||||
|
"start": index,
|
||||||
|
"nb": limit
|
||||||
|
})
|
||||||
|
|
||||||
# Extra calls
|
# Extra calls
|
||||||
|
|
||||||
def get_artist_discography_tabs(self, art_id, limit=100):
|
def get_artist_discography_tabs(self, art_id, limit=100):
|
||||||
|
|
Loading…
Reference in a new issue