From 9fb82e6b434653e0041154eac6a52c6ce7f0b151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 8 Mar 2018 18:06:39 +0100 Subject: [PATCH] apply expand_path() to archive paths --- gallery_dl/job.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 0d569a52..3e31e4cd 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -203,7 +203,8 @@ class DownloadJob(Job): self.sleep = self.extractor.config("sleep") archive = self.extractor.config("archive") if archive: - self.archive = util.DownloadArchive(archive, self.extractor) + path = util.expand_path(archive) + self.archive = util.DownloadArchive(path, self.extractor) self.pathfmt.set_directory(keywords) def handle_queue(self, url, keywords):