summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-10 20:26:34 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-10 20:26:34 +0100
commit042495d20a670542aa5b178e68c9c90041b19ff5 (patch)
tree3a5685d45d8d4ad3dbad450d8b6cf3a60af43a43
parent2891400022ca1442828a1f283030fd4629b58fc8 (diff)
downloadtidal-dl-ng-042495d20a670542aa5b178e68c9c90041b19ff5.tar.gz
🛠️ Download won't be delayed, if file was skipped. Fixes #8.
-rw-r--r--tidal_dl_ng/download.py4
1 files 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.