mirror of
https://gitlab.com/RemixDev/deezer-py.git
synced 2025-01-29 17:18:28 +00:00
WrongLicense check for 360 RA files
This commit is contained in:
parent
dbaedfab46
commit
c977ed9353
|
@ -159,7 +159,7 @@ class Deezer:
|
|||
track_tokens = [track_tokens, ]
|
||||
if not self.current_user.get('license_token'):
|
||||
return []
|
||||
if track_format == "FLAC" 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.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'):
|
||||
raise WrongLicense(format)
|
||||
|
||||
result = []
|
||||
|
|
Loading…
Reference in a new issue