Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix for sorter not formatting properly

Jules-WinnfieldX266b9bf9878a
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index b1a34f368..43fcb698b 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -50,7 +50,7 @@ class Sorter:
file.unlink()
return
for i in itertools.count(1):
- dest = dest.parent / f"{dest.stem} {copy.deepcopy(self.incrementer_format).format(i)}{dest.suffix}"
+ dest = dest.parent / f"{dest.stem}{copy.deepcopy(self.incrementer_format).format(i=i)}{dest.suffix}"
if not dest.is_file():
break
file.rename(dest)