Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
feat: add support to hotleaks.tv (#1433)
Barbarella66666661eba08be45ca
diff --git a/cyberdrop_dl/crawlers/__init__.py b/cyberdrop_dl/crawlers/__init__.pyindex 531a957c9..5b24c20a4 100644--- a/cyberdrop_dl/crawlers/__init__.py+++ b/cyberdrop_dl/crawlers/__init__.py@@ -40,6 +40,7 @@ from .google_drive import GoogleDriveCrawlerfrom .hianime import HiAnimeCrawlerfrom .hitomi_la import HitomiLaCrawlerfrom .hotleak_vip import HotLeakVipCrawler+from .hotleaks_dot_tv import HotLeaksTVCrawlerfrom .hotpic import HotPicCrawlerfrom .iceyfile import IceyFileCrawlerfrom .imagebam import ImageBamCrawlerdiff --git a/cyberdrop_dl/crawlers/hotleaks_dot_tv.py b/cyberdrop_dl/crawlers/hotleaks_dot_tv.pynew file mode 100644index 000000000..345f9a8b9--- /dev/null+++ b/cyberdrop_dl/crawlers/hotleaks_dot_tv.py@@ -0,0 +1,16 @@+from __future__ import annotations++from typing import ClassVar++from cyberdrop_dl.crawlers.leakedzone import LeakedZoneCrawler+from cyberdrop_dl.data_structures.url_objects import AbsoluteHttpURL++PRIMARY_URL = AbsoluteHttpURL("https://hotleaks.tv")+IMAGES_CDN = AbsoluteHttpURL("https://image-cdn.hotleaks.tv")+++class HotLeaksTVCrawler(LeakedZoneCrawler):+ DOMAIN: ClassVar[str] = "hotleaks.tv"+ FOLDER_DOMAIN: ClassVar[str] = "HotLeaksTV"+ PRIMARY_URL: ClassVar[AbsoluteHttpURL] = PRIMARY_URL+ IMAGES_CDN: ClassVar[AbsoluteHttpURL] = IMAGES_CDNdiff --git a/tests/crawlers/test_cases/hotleaks_dot_tv.py b/tests/crawlers/test_cases/hotleaks_dot_tv.pynew file mode 100644index 000000000..2e6d1a4ff--- /dev/null+++ b/tests/crawlers/test_cases/hotleaks_dot_tv.py@@ -0,0 +1,15 @@+DOMAIN = "hotleaks.tv"+TEST_CASES = [+ (+ "https://hotleaks.tv/sexythangyang/video/10714544",+ [+ {+ "url": "https://hotleaks.tv/sexythangyang/video/10714544",+ "filename": "10714544.mp4",+ "referer": "https://hotleaks.tv/sexythangyang/video/10714544",+ "album_id": None,+ "datetime": None,+ }+ ],+ ),+]