From a9e276bc3739e0c37cff2a7c92dfdcabd295ee58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 20 Jun 2018 18:12:59 +0200 Subject: [PATCH] reset delete-flag Since 'PathFormat' objects are being reused, setting `delete` to True once caused all files downloaded after to be deleted as well. --- gallery_dl/util.py | 1 + test/test_results.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gallery_dl/util.py b/gallery_dl/util.py index 8ed3e225..ff3eae94 100644 --- a/gallery_dl/util.py +++ b/gallery_dl/util.py @@ -474,6 +474,7 @@ class PathFormat(): def finalize(self): """Move tempfile to its target location""" if self.delete: + self.delete = False os.unlink(self.temppath) return diff --git a/test/test_results.py b/test/test_results.py index 7dfeabbc..fa32643e 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -22,6 +22,8 @@ TRAVIS_SKIP = { # temporary issues, etc. BROKEN = { + "senmanga", + "smugmug", "whatisthisimnotgoodwithcomputers", }