From 42b62671fabfdcf983a9575221420d85f7fbcac1 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 23 Sep 2025 07:44:37 -0400 Subject: New upstream version 1.30.8. --- gallery_dl/postprocessor/common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gallery_dl/postprocessor/common.py') diff --git a/gallery_dl/postprocessor/common.py b/gallery_dl/postprocessor/common.py index 8da8417..9992c56 100644 --- a/gallery_dl/postprocessor/common.py +++ b/gallery_dl/postprocessor/common.py @@ -54,7 +54,11 @@ 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, _): + self.archive.close() -- cgit v1.2.3