From 4c3750890712a6e8686cb918b1d9bd04907ba531 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 18 Mar 2024 22:35:51 -0600 Subject: [PATCH] change to media_item.filename --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/downloader/downloader.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 8410fcbff..4f3c94956 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.8" \ No newline at end of file +__version__ = "5.2.9" \ No newline at end of file diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.py index d46032b1f..51549e9e7 100644 --- a/cyberdrop_dl/downloader/downloader.py +++ b/cyberdrop_dl/downloader/downloader.py @@ -386,7 +386,7 @@ async def download(self, media_item: MediaItem) -> None: if partial_file and partial_file.is_file(): size = partial_file.stat().st_size - if partial_file.name in self._current_attempt_filesize and self._current_attempt_filesize[media_item.filename] >= size: + if media_item.filename in self._current_attempt_filesize and self._current_attempt_filesize[media_item.filename] >= size: raise DownloadFailure(status=getattr(e, "status", type(e).__name__), message="Download failed") self._current_attempt_filesize[media_item.filename] = size media_item.current_attempt = 0 diff --git a/pyproject.toml b/pyproject.toml index b5d435640..36d86f8db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.8" +version = "5.2.9" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"