From 9fa01271163625968b375ea667d348bb0e492dd2 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 20 Nov 2024 12:28:18 +0100 Subject: 👷 Refactored download delay limits to config. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/model/cfg.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.3.1