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
|
from deezer.api import API
|
||||||
import json
|
import json
|
||||||
|
|
||||||
__version__ = "0.0.4"
|
__version__ = "0.0.5"
|
||||||
|
|
||||||
class TrackFormats():
|
class TrackFormats():
|
||||||
"""Number associtation for formats"""
|
"""Number associtation for formats"""
|
||||||
|
|
|
@ -216,15 +216,15 @@ class API:
|
||||||
|
|
||||||
def search_radio(self, query, strict=False, order=None, index=0, limit=25):
|
def search_radio(self, query, strict=False, order=None, index=0, limit=25):
|
||||||
args = self._generate_search_args(query, strict, order, index, limit)
|
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):
|
def search_track(self, query, strict=False, order=None, index=0, limit=25):
|
||||||
args = self._generate_search_args(query, strict, order, index, limit)
|
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):
|
def search_user(self, query, strict=False, order=None, index=0, limit=25):
|
||||||
args = self._generate_search_args(query, strict, order, index, limit)
|
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):
|
def get_track(self, song_id):
|
||||||
return self.api_call(f'track/{str(song_id)}')
|
return self.api_call(f'track/{str(song_id)}')
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deezer-py",
|
name="deezer-py",
|
||||||
version="0.0.4",
|
version="0.0.5",
|
||||||
description="A wrapper for all Deezer's APIs",
|
description="A wrapper for all Deezer's APIs",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in a new issue