From 198c33ec3649e042907be40819a5241e93e000ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 26 Oct 2020 21:33:40 +0100 Subject: [PATCH] also collect post processors from 'basecategory' entries (fixes #1084) --- gallery_dl/extractor/common.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 357deac8..5efea4a2 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -518,6 +518,15 @@ class SharedConfigMixin(): ), key, default, ) + def config_accumulate(self, key): + values = config.accumulate(self._cfgpath, key) + + conf = config.get(("extractor",), self.basecategory) + if conf: + values[:0] = config.accumulate((self.subcategory,), key, conf=conf) + + return values + def generate_extractors(extractor_data, symtable, classes): """Dynamically generate Extractor classes"""