Skip to content

Bulk asynchronous downloader for multiple file hosts

Join queue's that limit to 1.

Jules-WinnfieldX3ee5608acfc1
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 0bacc21d1..21a388f89 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.114"
+__version__ = "5.0.115"
diff --git a/cyberdrop_dl/scraper/crawler.py b/cyberdrop_dl/scraper/crawler.py
index 609e02c8d..da6526c24 100644
--- a/cyberdrop_dl/scraper/crawler.py
+++ b/cyberdrop_dl/scraper/crawler.py
@@ -99,6 +99,10 @@ class Crawler(ABC):
await self.download_queue.put(media_item)
+ # if domains download limit is 1 join the queue
+ if await self.manager.download_manager.get_download_limit(self.domain) == 1:
+ await self.download_queue.join()
+
"""~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
async def handle_external_links(self, scrape_item: ScrapeItem) -> None:
diff --git a/pyproject.toml b/pyproject.toml
index fe894afeb..f13b069eb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.114"
+version = "5.0.115"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"