aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/common.py')
-rw-r--r--gallery_dl/extractor/common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py
index 357deac..5efea4a 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"""