summaryrefslogtreecommitdiff
path: root/tidal_dl_ng
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-02-05 19:58:54 +0100
committerRobert Honz <exislow+github@gmail.com>2024-02-05 19:58:54 +0100
commitb3c5c79ceb9d2e0deef55b46fdab270043762c87 (patch)
tree0b4540914707573b412e3b8ca2e062424a37536d /tidal_dl_ng
parent9dd9e49fa7c6540e5e6051becdabaf7f48dd31eb (diff)
downloadtidal-dl-ng-b3c5c79ceb9d2e0deef55b46fdab270043762c87.tar.gz
✨ Client ID will be swapped in order to get the correct HiRes Lossless token after refresh. Addresses #31
Diffstat (limited to 'tidal_dl_ng')
-rw-r--r--tidal_dl_ng/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tidal_dl_ng/config.py b/tidal_dl_ng/config.py
index 7e93e7f..165bdc5 100644
--- a/tidal_dl_ng/config.py
+++ b/tidal_dl_ng/config.py
@@ -109,6 +109,8 @@ 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