aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/common.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-10-07 02:11:52 -0400
commit83e1e051b8c0e622ef5f61c1955c47b4bde95b57 (patch)
tree544a434cb398d2adb8b8a2d553dc1c9a44b4ee1d /gallery_dl/postprocessor/common.py
parentf1612851ae9fe68c7444fb31e786503868aeaa7c (diff)
parentbbe7fac03d881662a458e7fbf870c9d71f5257f4 (diff)
Update upstream source from tag 'upstream/1.30.9'
Update to upstream version '1.30.9' with Debian dir 46cc56e13f05f4465cc64f67b4d7b775a95bd87a
Diffstat (limited to 'gallery_dl/postprocessor/common.py')
-rw-r--r--gallery_dl/postprocessor/common.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/gallery_dl/postprocessor/common.py b/gallery_dl/postprocessor/common.py
index 9992c56..82ad388 100644
--- a/gallery_dl/postprocessor/common.py
+++ b/gallery_dl/postprocessor/common.py
@@ -21,7 +21,7 @@ class PostProcessor():
def __repr__(self):
return self.__class__.__name__
- def _init_archive(self, job, options, prefix=None):
+ def _archive_init(self, job, options, prefix=None):
if archive_path := options.get("archive"):
extr = job.extractor
@@ -54,11 +54,13 @@ class PostProcessor():
else:
self.log.debug(
"Using %s archive '%s'", self.name, archive_path)
- job.register_hooks({"finalize": self._close_archive})
return True
self.archive = None
return False
- def _close_archive(self, _):
+ def _archive_register(self, job):
+ job.register_hooks({"finalize": self._archive_close})
+
+ def _archive_close(self, _):
self.archive.close()