From bf5c533aff34ac10cc0aac885bdd7ee02518258d Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 22 May 2024 21:49:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Fixed=20download=20delay=20for?= =?UTF-8?q?=20skipped=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 8 +------- 1 file changed, 1 insertion(+), 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()