summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/config.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-21 14:48:48 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-21 14:48:48 +0200
commit1224e42689e27fb75b5a4a742ac37f66e1c6eb07 (patch)
tree21b4367eb7cbf85aef17dead7519a9b2690f6396 /tidal_dl_ng/config.py
parenta205e44c26b3c36b831336d85ce875018eea0077 (diff)
downloadtidal-dl-ng-1224e42689e27fb75b5a4a742ac37f66e1c6eb07.tar.gz
👷 Login method updated due to `tidalapi` upgrade.
Diffstat (limited to 'tidal_dl_ng/config.py')
-rw-r--r--tidal_dl_ng/config.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tidal_dl_ng/config.py b/tidal_dl_ng/config.py
index 647ed7d..7258c8f 100644
--- a/tidal_dl_ng/config.py
+++ b/tidal_dl_ng/config.py
@@ -114,11 +114,13 @@ class Tidal(BaseConfig, metaclass=SingletonMeta):
result = False
if self.token_from_storage:
- self.session.client_enable_hires()
-
try:
result = self.session.load_oauth_session(
- self.data.token_type, self.data.access_token, self.data.refresh_token, self.data.expiry_time
+ self.data.token_type,
+ self.data.access_token,
+ self.data.refresh_token,
+ self.data.expiry_time,
+ is_pkce=True,
)
except HTTPError:
result = False