Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix: disable chevereto redirects (imgbb) (#1839)
NTFSvolume87adcd19a7cd
diff --git a/cyberdrop_dl/crawlers/imgbb.py b/cyberdrop_dl/crawlers/imgbb.pyindex b4925b7a8..705c22e9b 100644--- a/cyberdrop_dl/crawlers/imgbb.py+++ b/cyberdrop_dl/crawlers/imgbb.py@@ -2,6 +2,8 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING, ClassVar, Final+from typing_extensions import override+from cyberdrop_dl.crawlers._chevereto import CheveretoCrawlerfrom cyberdrop_dl.url_objects import AbsoluteHttpURL@@ -25,6 +27,12 @@ class ImgBBCrawler(CheveretoCrawler):FOLDER_DOMAIN: ClassVar[str] = "ImgBB"ALLOW_EMPTY_PATH: ClassVar[bool] = True+ @override+ async def _get_final_album_url(self, url: AbsoluteHttpURL) -> AbsoluteHttpURL:+ # Disable chevereto redirect+ # https://github.com/Cyberdrop-DL/cyberdrop-dl/issues/1738+ return url+async def fetch(self, scrape_item: ScrapeItem) -> None:username, _, rest = scrape_item.url.host.partition(".imgbb.")if username and rest: