add 'category-transfer' option

[ci skip]
This commit is contained in:
Mike Fährmann
2019-01-19 20:28:19 +01:00
parent 9b8ac12eed
commit 277b52101a
2 changed files with 13 additions and 1 deletions

View File

@@ -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 extractor.*.archive
------------------- -------------------
=========== ===== =========== =====

View File

@@ -37,7 +37,8 @@ class Job():
"chapter", [], False) "chapter", [], False)
# category transfer # 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.category = parent.extractor.category
self.extractor.subcategory = parent.extractor.subcategory self.extractor.subcategory = parent.extractor.subcategory