summaryrefslogtreecommitdiffstats
path: root/gallery_dl/util.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:46 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:46 -0400
commit9074eee175f76b824fbb6695d56426105191c51c (patch)
tree2294be463d325d7092e600d88f160027c437086d /gallery_dl/util.py
parent261c8c2bc74969e2242a153297895684742b6995 (diff)
New upstream version 1.15.0.upstream/1.15.0
Diffstat (limited to 'gallery_dl/util.py')
-rw-r--r--gallery_dl/util.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gallery_dl/util.py b/gallery_dl/util.py
index f688fa6..dbebfce 100644
--- a/gallery_dl/util.py
+++ b/gallery_dl/util.py
@@ -646,7 +646,7 @@ class Formatter():
obj = kwdict[key]
for func in funcs:
obj = func(obj)
- if obj is not None:
+ if obj:
break
except Exception:
pass
@@ -769,10 +769,8 @@ class PathFormat():
"""Open file and return a corresponding file object"""
return open(self.temppath, mode)
- def exists(self, archive=None):
- """Return True if the file exists on disk or in 'archive'"""
- if archive and self.kwdict in archive:
- return self.fix_extension()
+ def exists(self):
+ """Return True if the file exists on disk"""
if self.extension and os.path.exists(self.realpath):
return self.check_file()
return False