always initialize DownloadJob.hooks (fixes #1135)

and not just when any (potential) post processors are defined
pull/1195/head
Mike Fährmann 4 years ago
parent ae6a1d5fbc
commit 9c29fc4e55
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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

Loading…
Cancel
Save