Skip to content

Bulk asynchronous downloader for multiple file hosts

feat: add support to hotleaks.tv (#1433)

Barbarella66666661eba08be45ca
diff --git a/cyberdrop_dl/crawlers/__init__.py b/cyberdrop_dl/crawlers/__init__.py
index 531a957c9..5b24c20a4 100644
--- a/cyberdrop_dl/crawlers/__init__.py
+++ b/cyberdrop_dl/crawlers/__init__.py
@@ -40,6 +40,7 @@ from .google_drive import GoogleDriveCrawler
from .hianime import HiAnimeCrawler
from .hitomi_la import HitomiLaCrawler
from .hotleak_vip import HotLeakVipCrawler
+from .hotleaks_dot_tv import HotLeaksTVCrawler
from .hotpic import HotPicCrawler
from .iceyfile import IceyFileCrawler
from .imagebam import ImageBamCrawler
diff --git a/cyberdrop_dl/crawlers/hotleaks_dot_tv.py b/cyberdrop_dl/crawlers/hotleaks_dot_tv.py
new file mode 100644
index 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_CDN
diff --git a/tests/crawlers/test_cases/hotleaks_dot_tv.py b/tests/crawlers/test_cases/hotleaks_dot_tv.py
new file mode 100644
index 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,
+ }
+ ],
+ ),
+]