summaryrefslogtreecommitdiff
path: root/tidal_dl_ng
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-11-20 12:28:18 +0100
committerRobert Honz <exislow+github@gmail.com>2024-11-20 12:28:18 +0100
commit9fa01271163625968b375ea667d348bb0e492dd2 (patch)
tree34b07cfa6c4fb99e2b2dbd8a3e566a6cb21993c6 /tidal_dl_ng
parent91244c0936d8c41a99b33b1cab90b8a42d68b306 (diff)
downloadtidal-dl-ng-9fa01271163625968b375ea667d348bb0e492dd2.tar.gz
👷 Refactored download delay limits to config.
Diffstat (limited to 'tidal_dl_ng')
-rw-r--r--tidal_dl_ng/model/cfg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tidal_dl_ng/model/cfg.py b/tidal_dl_ng/model/cfg.py
index 1cd4b5f..06614f4 100644
--- a/tidal_dl_ng/model/cfg.py
+++ b/tidal_dl_ng/model/cfg.py
@@ -38,6 +38,8 @@ class Settings:
cover_album_file: bool = True
extract_flac: bool = True
downloads_simultaneous_per_track_max: int = 20
+ download_delay_sec_min: float = 3.0
+ download_delay_sec_max: float = 5.0
@dataclass_json
@@ -80,6 +82,8 @@ class HelpSettings:
cover_album_file: str = "Save cover to 'cover.jpg', if an album is downloaded."
extract_flac: str = "Extract FLAC audio tracks from MP4 containers and save them as `*.flac` (uses FFmpeg)."
downloads_simultaneous_per_track_max: str = "Maximum number of simultaneous chunk downloads per track."
+ download_delay_sec_min: float = "Lower boundary for the calculation of the download delay in seconds."
+ download_delay_sec_max: float = "Upper boundary for the calculation of the download delay in seconds."
@dataclass_json