From d6a0cb2c747e4f03817f822b0e92be95329dee5e Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 19 Dec 2021 17:43:35 +0100 Subject: [PATCH] Fixed #6 --- deezer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deezer/__init__.py b/deezer/__init__.py index b4a4c04..a4c527f 100644 --- a/deezer/__init__.py +++ b/deezer/__init__.py @@ -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 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) result = []