diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-04-21 14:48:48 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-04-21 14:48:48 +0200 |
| commit | 1224e42689e27fb75b5a4a742ac37f66e1c6eb07 (patch) | |
| tree | 21b4367eb7cbf85aef17dead7519a9b2690f6396 | |
| parent | a205e44c26b3c36b831336d85ce875018eea0077 (diff) | |
| download | tidal-dl-ng-1224e42689e27fb75b5a4a742ac37f66e1c6eb07.tar.gz | |
👷 Login method updated due to `tidalapi` upgrade.
| -rw-r--r-- | pyproject.toml | 2 | ||||
| -rw-r--r-- | tidal_dl_ng/config.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml index 96cab70..7196d19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 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 |
