From 9c29fc4e551eda4efd0ae542b41c76e1ed578108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 27 Nov 2020 23:57:41 +0100 Subject: [PATCH] always initialize DownloadJob.hooks (fixes #1135) and not just when any (potential) post processors are defined --- gallery_dl/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 4f20bb9c..570c7793 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -411,9 +411,9 @@ class DownloadJob(Job): if self.archive: self.archive.check = pathfmt.exists + self.hooks = collections.defaultdict(list) postprocessors = self.extractor.config_accumulate("postprocessors") if postprocessors: - self.hooks = collections.defaultdict(list) pp_log = self.get_logger("postprocessor") pp_list = [] category = self.extractor.category