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