From 277b52101a37e09d51f3485eba6c0839362a1acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 19 Jan 2019 20:28:19 +0100 Subject: [PATCH] add 'category-transfer' option [ci skip] --- docs/configuration.rst | 11 +++++++++++ gallery_dl/job.py | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index cdd057df..72fe6902 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -245,6 +245,17 @@ Description Default value used for missing or undefined keyword names in =========== ===== +extractor.*.category-transfer +----------------------------- +=========== ===== +Type ``bool`` +Default Extractor-specific +Description Transfer an extractor's (sub)category values to all child + extractors spawned by it, to let them inherit their parent's + config options. +=========== ===== + + extractor.*.archive ------------------- =========== ===== diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 0a7cce1f..4e96e04b 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -37,7 +37,8 @@ class Job(): "chapter", [], False) # category transfer - if parent and parent.extractor.categorytransfer: + if parent and parent.extractor.config( + "category-transfer", parent.extractor.categorytransfer): self.extractor.category = parent.extractor.category self.extractor.subcategory = parent.extractor.subcategory