Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix increments for sort
Jules-WinnfieldX933fd159268b
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 092ce6655..429aaa0db 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "5.1.49"+__version__ = "5.1.51"diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.pyindex 5dbe43ee4..503eae564 100644--- a/cyberdrop_dl/utils/sorting.py+++ b/cyberdrop_dl/utils/sorting.py@@ -51,10 +51,10 @@ class Sorter:file.unlink()returnfor i in itertools.count(1):- dest = dest.parent / f"{dest.stem}{self.incrementer_format.format(i=i)}{dest.suffix}"- if not dest.is_file():+ dest_make = dest.parent / f"{dest.stem}{self.incrementer_format.format(i=i)}{dest.suffix}"+ if not dest_make.is_file():break- file.rename(dest)+ file.rename(dest_make)async def check_dir_parents(self) -> bool:"""Checks if the sort dir is in the download dir"""diff --git a/pyproject.toml b/pyproject.tomlindex efdf9d80b..775cfeace 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "cyberdrop-dl"-version = "5.1.49"+version = "5.1.51"description = "Bulk downloader for multiple file hosts"authors = ["Jules Winnfield <[email protected]>"]readme = "README.md"