Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
add check for str in 4xx checker
Jules-WinnfieldXba2288e5971b
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 4882eba68..0bacc21d1 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "5.0.113"+__version__ = "5.0.114"diff --git a/cyberdrop_dl/clients/download_client.py b/cyberdrop_dl/clients/download_client.pyindex 612b16d43..45aaab11d 100644--- a/cyberdrop_dl/clients/download_client.py+++ b/cyberdrop_dl/clients/download_client.py@@ -25,6 +25,8 @@ if TYPE_CHECKING:async def is_4xx_client_error(status_code: int) -> bool:"""Checks whether the HTTP status code is 4xx client error"""+ if isinstance(status_code, str):+ return Truereturn HTTPStatus.BAD_REQUEST <= status_code < HTTPStatus.INTERNAL_SERVER_ERRORdiff --git a/pyproject.toml b/pyproject.tomlindex 63a887161..fe894afeb 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "cyberdrop-dl"-version = "5.0.113"+version = "5.0.114"description = "Bulk downloader for multiple file hosts"authors = ["Jules Winnfield <[email protected]>"]readme = "README.md"