diff options
| author | 2022-11-22 04:28:43 -0500 | |
|---|---|---|
| committer | 2022-11-22 04:28:43 -0500 | |
| commit | 2c529817db948dea14069ea9f5ccfae5598fff47 (patch) | |
| tree | ec67f818b3f6f329fdaa37cf8cf8a89d90022747 /gallery_dl/postprocessor/compare.py | |
| parent | 5ed6cfd4bbc85cc8c4bece8e0ff30600a640e6aa (diff) | |
| parent | 7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (diff) | |
Update upstream source from tag 'upstream/1.24.0'
Update to upstream version '1.24.0'
with Debian dir 44b4fff355c06e5285ef1f8a3ec428ae9cef164b
Diffstat (limited to 'gallery_dl/postprocessor/compare.py')
| -rw-r--r-- | gallery_dl/postprocessor/compare.py | 5 |
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: |
