Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: do not block capacity for an entire download

NTFSvolume9e97f471a771
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a28f3325..d5dc28b07 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Request download URL only when the download is about to begin, to prevent `403 Forbidden` errors due to expiration (Filester)
- `Skipped by config` stats not taking into account URLs skipped by host
+- All downloads being limited to 1 per site
## [10.0.1] - 2026-06-29
diff --git a/cyberdrop_dl/downloader/http.py b/cyberdrop_dl/downloader/http.py
index 2af484219..f782beebb 100644
--- a/cyberdrop_dl/downloader/http.py
+++ b/cyberdrop_dl/downloader/http.py
@@ -207,9 +207,10 @@ class Downloader:
return
self.capacity.waiting += 1
- async with self.lock(media_item.real_url), self.capacity.condition:
+ async with self.lock(media_item.real_url):
self._processed_items.add(media_item.db_path)
- self.capacity.condition.notify()
+ async with self.capacity.condition:
+ self.capacity.condition.notify()
self.capacity.waiting -= 1
yield