Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
check for removed with imgur
Jules-WinnfieldXf8792f6f0996
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 5f8592903..529ea849f 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "4.2.163"+__version__ = "4.2.164"diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.pyindex 154c3a3da..903da57b0 100644--- a/cyberdrop_dl/client/client.py+++ b/cyberdrop_dl/client/client.py@@ -169,6 +169,8 @@ class DownloadSession:raise DownloadFailure(status=CustomHTTPStatus.IM_A_TEAPOT, message="No content-type in response header")if resp.url in self.bunkr_maintenance:raise DownloadFailure(status=HTTPStatus.SERVICE_UNAVAILABLE, message="Bunkr under maintenance")+ if "imgur.com/removed" in str(resp.url):+ raise DownloadFailure(status=HTTPStatus.NOT_FOUND, message="Imgur image has been removed")extname = Path(media.filename).suffix.lower()if any(s in content_type.lower() for s in ('html', 'text')) and extname not in FILE_FORMATS['Text']: