summaryrefslogtreecommitdiffstats
path: root/gallery_dl/job.py
diff options
context:
space:
mode:
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