Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fet: support additional domains (Pixeldrain) (#1637)
NTFSvolume2bac95dc0589
diff --git a/cyberdrop_dl/crawlers/pixeldrain.py b/cyberdrop_dl/crawlers/pixeldrain.pyindex 68befb4a6..75f3f9e28 100644--- a/cyberdrop_dl/crawlers/pixeldrain.py+++ b/cyberdrop_dl/crawlers/pixeldrain.py@@ -2,7 +2,7 @@from __future__ import annotations-from typing import TYPE_CHECKING, ClassVar, Literal+from typing import TYPE_CHECKING, Any, ClassVar, Literalfrom pydantic import BaseModel@@ -71,7 +71,16 @@ class FileSystem(BaseModel):class PixelDrainCrawler(Crawler):- SUPPORTED_DOMAINS: ClassVar[SupportedDomains] = "pixeldrain.net", "pixeldrain.com", "pixeldra.in", *_BYPASS_HOSTS+ SUPPORTED_DOMAINS: ClassVar[SupportedDomains] = (+ "pixeldrain.com",+ "pixeldrain.net",+ "pixeldra.in",+ "pixeldrain.nl",+ "pixeldrain.biz",+ "pixeldrain.tech",+ "pixeldrain.dev",+ *_BYPASS_HOSTS,+ )SUPPORTED_PATHS: ClassVar[SupportedPaths] = {"File": ("/u/<file_id>",@@ -103,7 +112,7 @@ class PixelDrainCrawler(Crawler):)@classmethod- def _json_response_check(cls, json_resp: dict) -> None:+ def _json_response_check(cls, json_resp: dict[str, Any]) -> None:# TODO: pass the resp obj to the json check functionsreturnif not json_resp["success"]: