From c9848030d808bba97680ad7e6fb8ad5a90e9a2d2 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 24 May 2024 13:41:42 +0200 Subject: 🛠️ PKCE flag was not set on first login. Fixes #113 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tidal_dl_ng/config.py b/tidal_dl_ng/config.py index 112ff8c..0762677 100644 --- a/tidal_dl_ng/config.py +++ b/tidal_dl_ng/config.py @@ -120,6 +120,8 @@ class Tidal(BaseConfig, metaclass=SingletonMeta): if self.session.audio_quality != tidalapi.media.Quality.hi_res_lossless: do_pkce = False + self.is_pkce = do_pkce + if self.token_from_storage: try: result = self.session.load_oauth_session( @@ -129,7 +131,6 @@ class Tidal(BaseConfig, metaclass=SingletonMeta): self.data.expiry_time, is_pkce=do_pkce, ) - self.is_pkce = do_pkce except HTTPError: result = False -- cgit v1.3.1