From 042495d20a670542aa5b178e68c9c90041b19ff5 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Wed, 10 Jan 2024 20:26:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Download=20won't=20be?= =?UTF-8?q?=20delayed,=20if=20file=20was=20skipped.=20Fixes=20#8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index e729eff..f94a153 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -275,7 +275,7 @@ class Download: for media in items: Progress() # TODO: Handle return value of `track` method. - self.item( + status_download, result_path_file = self.item( path_base=path_file, file_template=file_name_relative, media=media, @@ -288,7 +288,7 @@ class Download: if not progress_stdout: progress_gui.list_item.emit(progress.tasks[p_task1].percentage) - if download_delay: + if download_delay and status_download: time_sleep: float = round(random.SystemRandom().uniform(2, 5), 1) # TODO: Fix logging. Is not displayed in debug window.