From 7af5cc29d1c02d20a6890b7b7ba78ab41532a763 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 22 Nov 2022 04:28:38 -0500 Subject: New upstream version 1.24.0. --- gallery_dl/postprocessor/compare.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gallery_dl/postprocessor/compare.py') 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: -- cgit v1.2.3