diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-05-24 13:41:42 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-05-24 13:41:42 +0200 |
| commit | c9848030d808bba97680ad7e6fb8ad5a90e9a2d2 (patch) | |
| tree | b4e553a2bfebdc5de83b3d59d5a9df75089a1579 | |
| parent | 4fa70469df1964d66c6d324ad4f4b04db9f25fca (diff) | |
| download | tidal-dl-ng-c9848030d808bba97680ad7e6fb8ad5a90e9a2d2.tar.gz | |
🛠️ PKCE flag was not set on first login. Fixes #113
| -rw-r--r-- | tidal_dl_ng/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
