aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/postprocessor/compare.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-11-22 04:28:38 -0500
commit7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch)
tree4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/postprocessor/compare.py
parente59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff)
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/postprocessor/compare.py')
-rw-r--r--gallery_dl/postprocessor/compare.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/postprocessor/compare.py b/gallery_dl/postprocessor/compare.py
index b3b94f7..910e1d7 100644
--- a/gallery_dl/postprocessor/compare.py
+++ b/gallery_dl/postprocessor/compare.py
@@ -51,8 +51,9 @@ class ComparePP(PostProcessor):
num = 1
try:
while not self._compare(pathfmt.realpath, pathfmt.temppath):
- pathfmt.prefix = str(num) + "."
- pathfmt.set_extension(pathfmt.extension, False)
+ pathfmt.prefix = prefix = format(num) + "."
+ pathfmt.kwdict["extension"] = prefix + pathfmt.extension
+ pathfmt.build_path()
num += 1
return self._equal(pathfmt)
except OSError: