From 1224e42689e27fb75b5a4a742ac37f66e1c6eb07 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sun, 21 Apr 2024 14:48:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Login=20method=20updated=20due?= =?UTF-8?q?=20to=20`tidalapi`=20upgrade.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 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