Skip to content

Bulk asynchronous downloader for multiple file hosts

Update sorting.py

datawhorescb8a3e4cf06f
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index 1ef4b8416..cceec2f71 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -67,6 +67,7 @@ class Sorter:
except FileExistsError:
if file.stat().st_size == dest.stat().st_size:
file.unlink()
+ return
for i in itertools.count(1):
dest_make = dest.parent / f"{dest.stem}{self.incrementer_format.format(i=i)}{dest.suffix}"
if not dest_make.is_file():