PKCE login is no longer required for HI_RES_LOSSLESS. Fixes #153

This commit is contained in:
Robert Honz
2024-11-09 17:33:21 +01:00
parent e4578cf257
commit 3bd66d6035
2 changed files with 2 additions and 14 deletions
+1 -6
View File
@@ -113,13 +113,8 @@ class Tidal(BaseConfig, metaclass=SingletonMeta):
return True
def login_token(self, do_pkce: bool = True) -> bool:
def login_token(self, do_pkce: bool = False) -> bool:
result = False
# Do not login via PKCE, if HiRes LOSSLESS is not set as global audio quality.
if self.session.audio_quality != tidalapi.media.Quality.hi_res_lossless:
do_pkce = False
self.is_pkce = do_pkce
if self.token_from_storage: