diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-05-22 21:49:55 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-05-22 21:49:55 +0200 |
| commit | bf5c533aff34ac10cc0aac885bdd7ee02518258d (patch) | |
| tree | b65a937e75376f05aabb94c14a597795c8a4afbc | |
| parent | 2d5c9aa860c68f48f7a879922ebd523bfe7f6334 (diff) | |
| download | tidal-dl-ng-bf5c533aff34ac10cc0aac885bdd7ee02518258d.tar.gz | |
👷 Fixed download delay for skipped files.
| -rw-r--r-- | tidal_dl_ng/download.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 25c69b1..bb42014 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -460,6 +460,7 @@ class Download: file_template=file_name_relative, quality_audio=quality_audio, quality_video=quality_video, + download_delay=download_delay ) # Advance progress bar. @@ -468,13 +469,6 @@ class Download: if not progress_stdout: self.progress_gui.list_item.emit(self.progress.tasks[p_task1].percentage) - # If a file was downloaded and the download delay is enabled, wait until the next download. - if download_delay and status_download: - time_sleep: float = round(random.SystemRandom().uniform(2, 5), 1) - - self.fn_logger.debug(f"Next download will start in {time_sleep} seconds.") - time.sleep(time_sleep) - def _video_convert(self, path_file: str) -> str: path_file_out = path_file + AudioExtensions.MP4 result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy", loglevel="quiet").run() |
