apply expand_path() to archive paths

This commit is contained in:
Mike Fährmann
2018-03-08 18:06:39 +01:00
parent 32bbd12f08
commit 9fb82e6b43

View File

@@ -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):