mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2024-12-29 10:56:13 +00:00
Fixed search_radio, search_track and search_user
This commit is contained in:
parent
605efe5e2d
commit
2b4fab5f19
|
@ -4,7 +4,7 @@ from deezer.gw import GW
|
|||
from deezer.api import API
|
||||
import json
|
||||
|
||||
__version__ = "0.0.4"
|
||||
__version__ = "0.0.5"
|
||||
|
||||
class TrackFormats():
|
||||
"""Number associtation for formats"""
|
||||
|
|
|
@ -216,15 +216,15 @@ class API:
|
|||
|
||||
def search_radio(self, query, strict=False, order=None, index=0, limit=25):
|
||||
args = self._generate_search_args(query, strict, order, index, limit)
|
||||
return self.api_call('search/playlist', radio)
|
||||
return self.api_call('search/radio', args)
|
||||
|
||||
def search_track(self, query, strict=False, order=None, index=0, limit=25):
|
||||
args = self._generate_search_args(query, strict, order, index, limit)
|
||||
return self.api_call('search/track', radio)
|
||||
return self.api_call('search/track', args)
|
||||
|
||||
def search_user(self, query, strict=False, order=None, index=0, limit=25):
|
||||
args = self._generate_search_args(query, strict, order, index, limit)
|
||||
return self.api_call('search/user', radio)
|
||||
return self.api_call('search/user', args)
|
||||
|
||||
def get_track(self, song_id):
|
||||
return self.api_call(f'track/{str(song_id)}')
|
||||
|
|
Loading…
Reference in a new issue