Fixed search_radio, search_track and search_user

This commit is contained in:
RemixDev 2020-11-19 21:11:54 +01:00
parent 605efe5e2d
commit 2b4fab5f19
No known key found for this signature in database
GPG key ID: B33962B465BDB51C
3 changed files with 5 additions and 5 deletions

View file

@ -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"""

View file

@ -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)}')

View file

@ -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",