Skip to content

Bulk asynchronous downloader for multiple file hosts

Imgur 418 > 500

Jules-WinnfieldXb62318ddd101
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 8c573ae07..d5e7de6f0 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.2.28"
+__version__ = "5.2.29"
diff --git a/cyberdrop_dl/managers/client_manager.py b/cyberdrop_dl/managers/client_manager.py
index 7fc96212d..28ea3a074 100644
--- a/cyberdrop_dl/managers/client_manager.py
+++ b/cyberdrop_dl/managers/client_manager.py
@@ -93,6 +93,14 @@ class ClientManager:
except ContentTypeError:
pass
+ if "imgur" in response.url.host.lower():
+ try:
+ JSON_Resp = await response.json()
+ if "status" in JSON_Resp:
+ raise ScrapeFailure(JSON_Resp['status'], JSON_Resp['data']['error'])
+ except ContentTypeError:
+ pass
+
try:
phrase = HTTPStatus(status).phrase
except ValueError:
diff --git a/pyproject.toml b/pyproject.toml
index 9d555e30c..23286ca42 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.2.28"
+version = "5.2.29"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"