apply post processor blacklists/whitelists to basecategories

(#1103)
pull/1195/head
Mike Fährmann 4 years ago
parent 1e3dd7330e
commit f99c6031e0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -410,13 +410,20 @@ class DownloadJob(Job):
pp_log = self.get_logger("postprocessor")
pp_list = []
category = self.extractor.category
basecategory = self.extractor.basecategory
for pp_dict in postprocessors:
whitelist = pp_dict.get("whitelist")
if whitelist and category not in whitelist and \
basecategory not in whitelist:
continue
blacklist = pp_dict.get("blacklist")
if (whitelist and category not in whitelist or
blacklist and category in blacklist):
if blacklist and (
category in blacklist or basecategory in blacklist):
continue
name = pp_dict.get("name")
pp_cls = postprocessor.find(name)
if not pp_cls:

Loading…
Cancel
Save