summaryrefslogtreecommitdiffstats
path: root/gallery_dl/job.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/job.py')
-rw-r--r--gallery_dl/job.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/gallery_dl/job.py b/gallery_dl/job.py
index c717dc2..6ba2572 100644
--- a/gallery_dl/job.py
+++ b/gallery_dl/job.py
@@ -182,7 +182,14 @@ class DownloadJob(Job):
self.downloaders = {}
self.postprocessors = None
self.out = output.select()
- self.visited = parent.visited if parent else set()
+
+ if parent:
+ self.visited = parent.visited
+ pfmt = parent.pathfmt
+ if pfmt and parent.extractor.config("parent-directory"):
+ self.extractor._parentdir = pfmt.directory
+ else:
+ self.visited = set()
def handle_url(self, url, kwdict, fallback=None):
"""Download the resource specified in 'url'"""