Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
change to media_item.filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 19, 2024
1 parent f8546fe commit 4c37508
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.8"
__version__ = "5.2.9"
2 changes: 1 addition & 1 deletion cyberdrop_dl/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 4c37508

Please sign in to comment.