This commit is contained in:
RemixDev 2021-12-28 08:45:25 +01:00
parent 6171014f37
commit 3fa01e825c
No known key found for this signature in database
GPG key ID: B33962B465BDB51C
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ from deezer.gw import GW
from deezer.api import API
from deezer.errors import DeezerError, WrongLicense, WrongGeolocation
__version__ = "1.3.0"
__version__ = "1.3.2"
class TrackFormats():
"""Number associtation for formats"""
@ -159,7 +159,7 @@ class Deezer:
track_tokens = [track_tokens, ]
if not self.current_user.get('license_token'):
return []
if (track_format == "FLAC" or track_format.startswidth("MP4_RA")) and not self.current_user.get('can_stream_lossless') or track_format == "MP3_320" and not self.current_user.get('can_stream_hq'):
if (track_format == "FLAC" or track_format.startswith("MP4_RA")) and not self.current_user.get('can_stream_lossless') or track_format == "MP3_320" and not self.current_user.get('can_stream_hq'):
raise WrongLicense(format)
result = []

View file

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deezer-py",
version="1.3.0",
version="1.3.2",
description="A wrapper for all Deezer's APIs",
long_description=README,
long_description_content_type="text/markdown",