Skip to content

Commit 042495d

Browse files
committed
🛠️ Download won't be delayed, if file was skipped. Fixes #8.
1 parent 2891400 commit 042495d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidal_dl_ng/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def list(
275275
for media in items:
276276
Progress()
277277
# TODO: Handle return value of `track` method.
278-
self.item(
278+
status_download, result_path_file = self.item(
279279
path_base=path_file,
280280
file_template=file_name_relative,
281281
media=media,
@@ -288,7 +288,7 @@ def list(
288288
if not progress_stdout:
289289
progress_gui.list_item.emit(progress.tasks[p_task1].percentage)
290290

291-
if download_delay:
291+
if download_delay and status_download:
292292
time_sleep: float = round(random.SystemRandom().uniform(2, 5), 1)
293293

294294
# TODO: Fix logging. Is not displayed in debug window.

0 commit comments

Comments
 (0)