Skip to content

Bulk asynchronous downloader for multiple file hosts

Check for bunkr maintenance redirect

Jules-WinnfieldXcc4e5e2b4925
diff --git a/README.md b/README.md
index 1dbc82760..4e9442f24 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 4.0.5
+The latest version of the program is 4.0.6
Brand new and improved! Cyberdrop-DL now has an updated paint job, fantastic new look. On top of this it also downloads from different domains simultaneously.
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index e2a8e2c07..d15f23d85 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "4.0.5"
+__version__ = "4.0.6"
diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.py
index 1c84e6db0..21ae4ba79 100644
--- a/cyberdrop_dl/client/client.py
+++ b/cyberdrop_dl/client/client.py
@@ -128,6 +128,8 @@ class DownloadSession:
async with self.client_session.get(media.url, headers=headers, ssl=self.client.ssl_context,
raise_for_status=True, proxy=proxy) as resp:
content_type = resp.headers.get('Content-Type')
+ if resp.url == URL("https://bnkr.b-cdn.net/maintenance.mp4"):
+ raise DownloadFailure(code=resp.status, message="Bunkr under maintenance")
if 'text' in content_type.lower() or 'html' in content_type.lower():
logger.debug("Server for %s is experiencing issues, you are being ratelimited, or cookies have expired", str(media.url))
await File_Lock.remove_lock(original_filename)