Skip to content

Bulk asynchronous downloader for multiple file hosts

Trying to fix it still

Jules-WinnfieldX2930dc0c9e8f
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 8e7ae2b97..420407c6a 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.91"
+__version__ = "5.0.92"
diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.py
index 4556ef86f..f7b3668b0 100644
--- a/cyberdrop_dl/downloader/downloader.py
+++ b/cyberdrop_dl/downloader/downloader.py
@@ -145,15 +145,15 @@ class Downloader:
await log(traceback.format_exc())
await self.manager.progress_manager.download_stats_progress.add_failure("Unknown")
await self.manager.progress_manager.download_progress.add_failed()
- if self._unfinished_count == 0 and self.download_queue.empty():
- self.complete = True
self._unfinished_count -= 1
self.download_queue.task_done()
+ if self._unfinished_count == 0 and self.download_queue.empty():
+ self.complete = True
continue
await log(f"Download Finished: {media_item.url}")
- self._lock = True
+ self._lock = False
self.download_queue.task_done()
self._unfinished_count -= 1
if self._unfinished_count == 0 and self.download_queue.empty():
diff --git a/pyproject.toml b/pyproject.toml
index 5a5d45c80..37ee63887 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.91"
+version = "5.0.92"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"