Skip to content

Bulk asynchronous downloader for multiple file hosts

change to media_item.filename

Jules-WinnfieldX4c3750890712
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 @@ class Downloader:
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 <[email protected]>"]
readme = "README.md"