diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-11-13 13:45:38 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-11-13 13:45:38 +0100 |
| commit | 65dbe8524154a9c36413c40185b91ab0b10f82aa (patch) | |
| tree | 7eebae9db3d75565665541c209b61f9ac8475188 /tidal_dl_ng | |
| parent | 9e0b9748cb5a53926d4b0a2cd9f56f271c0ec473 (diff) | |
| download | tidal-dl-ng-65dbe8524154a9c36413c40185b91ab0b10f82aa.tar.gz | |
✨ Bug fix for import constants.
Diffstat (limited to 'tidal_dl_ng')
| -rw-r--r-- | tidal_dl_ng/download.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 10e8f68..f5b7404 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -11,7 +11,6 @@ from uuid import uuid4 import ffmpeg import m3u8 import requests -from constants import CHUNK_SIZE, COVER_NAME from requests.adapters import HTTPAdapter, Retry from requests.exceptions import HTTPError from rich.progress import Progress, TaskID @@ -20,7 +19,14 @@ from tidalapi.exceptions import TooManyRequests from tidalapi.media import AudioExtensions, Codec, Quality, StreamManifest, VideoExtensions from tidal_dl_ng.config import Settings -from tidal_dl_ng.constants import EXTENSION_LYRICS, REQUESTS_TIMEOUT_SEC, MediaType, QualityVideo +from tidal_dl_ng.constants import ( + CHUNK_SIZE, + COVER_NAME, + EXTENSION_LYRICS, + REQUESTS_TIMEOUT_SEC, + MediaType, + QualityVideo, +) from tidal_dl_ng.helper.decryption import decrypt_file, decrypt_security_token from tidal_dl_ng.helper.exceptions import MediaMissing from tidal_dl_ng.helper.path import check_file_exists, format_path_media, path_file_sanitize, url_to_filename |
