improve 'parent-directory' (#1364)
Allow forwarding metadata from the top-level extractor to all children if 'parent-directory' is enabled for all extractors along the way. For example 'reddit' -> 'gfycat' -> 'redgifs'
This commit is contained in:
parent
c485d0a956
commit
23641742a3
@ -202,7 +202,10 @@ class DownloadJob(Job):
|
||||
pfmt = parent.pathfmt
|
||||
if pfmt and parent.extractor.config("parent-directory"):
|
||||
self.extractor._parentdir = pfmt.directory
|
||||
if kwdict and parent.extractor.config("parent-metadata"):
|
||||
if parent.extractor.config("parent-metadata"):
|
||||
if parent.kwdict:
|
||||
self.kwdict.update(parent.kwdict)
|
||||
if kwdict:
|
||||
self.kwdict.update(kwdict)
|
||||
else:
|
||||
self.visited = set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user