aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/job.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:24:52 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2026-01-06 04:24:52 -0500
commit385e4bfb1e426d23417ac788a6f44d639e226c89 (patch)
treee64f04e19d63014d48e3b5272ce112c637236ba7 /gallery_dl/job.py
parenta24ec1647aeac35a63b744ea856011ad6e06be3b (diff)
New upstream version 1.31.2.upstream/1.31.2upstream
Diffstat (limited to 'gallery_dl/job.py')
-rw-r--r--gallery_dl/job.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/job.py b/gallery_dl/job.py
index 7a52bd6..9d387a3 100644
--- a/gallery_dl/job.py
+++ b/gallery_dl/job.py
@@ -533,12 +533,15 @@ class DownloadJob(Job):
callback(pathfmt)
self.out.skip(pathfmt.path)
- if self._skipexc:
+ if self._skipexc is not None:
if self._skipftr is None or self._skipftr(pathfmt.kwdict):
self._skipcnt += 1
if self._skipcnt >= self._skipmax:
raise self._skipexc
+ if self.sleep_skip is not None:
+ self.extractor.sleep(self.sleep_skip(), "skip")
+
def download(self, url):
"""Download 'url'"""
if downloader := self.get_downloader(url[:url.find(":")]):
@@ -582,6 +585,7 @@ class DownloadJob(Job):
pathfmt.set_directory(kwdict)
self.sleep = util.build_duration_func(cfg("sleep"))
+ self.sleep_skip = util.build_duration_func(cfg("sleep-skip"))
self.fallback = cfg("fallback", True)
if not cfg("download", True):
# monkey-patch method to do nothing and always return True