This commit is contained in:
RemixDev 2021-12-19 17:43:35 +01:00
parent 5702b2838b
commit d6a0cb2c74
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

View file

@ -159,7 +159,7 @@ class Deezer:
track_tokens = [track_tokens, ] track_tokens = [track_tokens, ]
if not self.current_user.get('license_token'): if not self.current_user.get('license_token'):
return [] return []
if track_format == "FLAC" and not self.current_user.get('can_stream_lossless') or format == "MP3_320" and not self.current_user.get('can_stream_hq'): 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'):
raise WrongLicense(format) raise WrongLicense(format)
result = [] result = []