Skip to content

Bulk asynchronous downloader for multiple file hosts

Add connection timeout to scraper.

Jules-WinnfieldX70a7c93bf0ff
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index fed9b50d1..02fbae83c 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.3.10"
+__version__ = "3.3.11"
diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.py
index 9c45fbe92..c3b978015 100644
--- a/cyberdrop_dl/client/client.py
+++ b/cyberdrop_dl/client/client.py
@@ -32,8 +32,9 @@ class Session:
self.client = client
self.rate_limiter = AsyncRateLimiter(self.client.ratelimit)
self.headers = {"user-agent": client.user_agent}
+ self.timeouts = aiohttp.ClientTimeout(5 * 60, 15)
self.client_session = aiohttp.ClientSession(headers=self.headers, raise_for_status=True,
- cookie_jar=self.client.cookies)
+ cookie_jar=self.client.cookies, timeout=self.timeouts)
async def get_BS4(self, url: URL):
async with self.client.simultaneous_session_limit: