Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
use etag instead of redir urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 23, 2024
1 parent 8b90922 commit b976042
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.47"
__version__ = "5.1.48"
2 changes: 1 addition & 1 deletion cyberdrop_dl/managers/client_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def check_http_status(self, response: ClientResponse, download: bool = Fal
if download:
if headers.get('ETag') in ['"eb669b6362e031fa2b0f1215480c4e30"', '"a9e4cee098dc6f1e09ec124299f26b30"']:
raise DownloadFailure(status="Bunkr Maintenance", message="Bunkr under maintenance")
if "imgur.com/removed" in str(response_url):
if headers.get('ETag') == '"d835884373f4d6c8f24742ceabe74946"':
raise DownloadFailure(status=HTTPStatus.NOT_FOUND, message="Imgur image has been removed")

if HTTPStatus.OK <= status < HTTPStatus.BAD_REQUEST:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.1.47"
version = "5.1.48"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit b976042

Please sign in to comment.