diff options
| author | 2024-09-07 18:33:25 -0400 | |
|---|---|---|
| committer | 2024-09-07 18:33:25 -0400 | |
| commit | 05335f2b4f60f6948edc96c71a7ef1c3ca71c9b3 (patch) | |
| tree | 2c455afb2e2fcd51788500ce8a3455a1ef659b0e /gallery_dl/job.py | |
| parent | c45c7a86c313075d1fbd5803e7efdda680b27cd7 (diff) | |
| parent | 1f3ffe32342852fd9ea9e7704022488f3a1222bd (diff) | |
Update upstream source from tag 'upstream/1.27.4'
Update to upstream version '1.27.4'
with Debian dir 9c7b608ab0b9fa99a0cd692418a8f3965bf3d1c3
Diffstat (limited to 'gallery_dl/job.py')
| -rw-r--r-- | gallery_dl/job.py | 9 |
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 |
