summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/constants.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-11-12 22:15:11 +0100
committerRobert Honz <exislow+github@gmail.com>2024-11-12 22:15:11 +0100
commit78a48348a8986f0044fbce2097ad3e099258d32d (patch)
tree3d24f4fabdd585bc131ecc4cdaa80038c245768b /tidal_dl_ng/constants.py
parent4cef07b08f16410f56fa53a34884ce3b5dd6b64e (diff)
downloadtidal-dl-ng-78a48348a8986f0044fbce2097ad3e099258d32d.tar.gz
✨ Track segments are downloaded simultaneously, which results in a huge speed increase. Some refactoring work has been done.
Diffstat (limited to 'tidal_dl_ng/constants.py')
-rw-r--r--tidal_dl_ng/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tidal_dl_ng/constants.py b/tidal_dl_ng/constants.py
index d3ea2b8..ad8d2ee 100644
--- a/tidal_dl_ng/constants.py
+++ b/tidal_dl_ng/constants.py
@@ -6,6 +6,9 @@ EXTENSION_LYRICS: str = ".lrc"
UNIQUIFY_THRESHOLD: int = 99
FILENAME_SANITIZE_PLACEHOLDER: str = "_"
COVER_NAME: str = "cover.jpg"
+BLOCK_SIZE: int = 4096
+BLOCKS: int = 1024
+CHUNK_SIZE: int = BLOCK_SIZE * BLOCKS
class QualityVideo(StrEnum):