👷 Login method updated due to tidalapi upgrade.

This commit is contained in:
Robert Honz
2024-04-21 14:48:48 +02:00
parent a205e44c26
commit 1224e42689
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ profile = "black"
multi_line_output = 3
indent = 4
color_output = true
known_third_party = ["Crypto", "PySide6", "coloredlogs", "dataclasses_json", "mutagen", "pathvalidate", "requests", "rich", "tidalapi", "toml", "typer"]
known_third_party = ["Crypto", "PySide6", "coloredlogs", "dataclasses_json", "ffmpeg", "m3u8", "mutagen", "pathvalidate", "requests", "rich", "tidalapi", "toml", "typer"]
[tool.mypy]
# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
+5 -3
View File
@@ -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