diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 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.py index 5dbe43ee4..503eae564 100644 --- a/cyberdrop_dl/utils/sorting.py +++ b/cyberdrop_dl/utils/sorting.py @@ -51,10 +51,10 @@ async def move_cd(self, file: Path, dest: Path) -> None: file.unlink() return for 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.toml index 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 "] readme = "README.md"