summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-03 06:10:36 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-03 06:10:36 +0200
commitff16fce066f61edd26c2e6db5e7405398ab2775c (patch)
treeaf7d780af6d92153d06e1ef6484d5feeb1e29962
parentfe5d9880cb96f9f3cde2a483c54b0f90a1da322a (diff)
downloadtidal-dl-ng-ff16fce066f61edd26c2e6db5e7405398ab2775c.tar.gz
✨ Download delay enabled for skipped tracks.
-rw-r--r--tidal_dl_ng/download.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index 4ad3af2..a8545c7 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -255,9 +255,9 @@ class Download:
status_download: bool = not file_exists
- # If a file was downloaded and the download delay is enabled, wait until the next download.
- # Only use this, if you have a list of several Track items. Do not use this for list items.
- if download_delay and status_download:
+ # Whether a file was downloaded or skipped and the download delay is enabled, wait until the next download.
+ # Only use this, if you have a list of several Track items.
+ if download_delay:
time_sleep: float = round(random.SystemRandom().uniform(2, 5), 1)
self.fn_logger.debug(f"Next download will start in {time_sleep} seconds.")