summaryrefslogtreecommitdiffstats
path: root/gallery_dl/job.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:15 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-03-16 23:20:15 -0400
commite8cc000750de972384f2f34d02d42222b4018ae9 (patch)
tree26eb0bacedff7480d29bafcf184ca529cf9f1d9f /gallery_dl/job.py
parent4366125d2580982abb57bc65a26fc1fb8ef2a5df (diff)
New upstream version 1.13.2upstream/1.13.2
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'"""