aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/job.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-09-07 18:33:19 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2024-09-07 18:33:19 -0400
commit1f3ffe32342852fd9ea9e7704022488f3a1222bd (patch)
treecb255a091b73e96840de0f6f44b36dff1acab4b9 /gallery_dl/job.py
parentb5e56c51e491b41f9eb6a895459c185788a377e5 (diff)
New upstream version 1.27.4.upstream/1.27.4
Diffstat (limited to 'gallery_dl/job.py')
-rw-r--r--gallery_dl/job.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gallery_dl/job.py b/gallery_dl/job.py
index 0e0916d..c995767 100644
--- a/gallery_dl/job.py
+++ b/gallery_dl/job.py
@@ -322,6 +322,12 @@ class DownloadJob(Job):
for callback in hooks["prepare-after"]:
callback(pathfmt)
+ if kwdict.pop("_file_recheck", False) and pathfmt.exists():
+ if archive and self._archive_write_skip:
+ archive.add(kwdict)
+ self.handle_skip()
+ return
+
if self.sleep:
self.extractor.sleep(self.sleep(), "download")
@@ -474,10 +480,11 @@ class DownloadJob(Job):
def handle_skip(self):
pathfmt = self.pathfmt
- self.out.skip(pathfmt.path)
if "skip" in self.hooks:
for callback in self.hooks["skip"]:
callback(pathfmt)
+ self.out.skip(pathfmt.path)
+
if self._skipexc:
if not self._skipftr or self._skipftr(pathfmt.kwdict):
self._skipcnt += 1