Skip to content

Bulk asynchronous downloader for multiple file hosts

refactor: include file id in video host filenames

NTFSvolume3c66bd33b587
diff --git a/cyberdrop_dl/crawlers/lulustream.py b/cyberdrop_dl/crawlers/lulustream.py
index 3f67519e2..515efb7e9 100644
--- a/cyberdrop_dl/crawlers/lulustream.py
+++ b/cyberdrop_dl/crawlers/lulustream.py
@@ -57,7 +57,7 @@ class LuluStreamCrawler(Crawler):
video.title,
ext := ".mp4",
m3u8=m3u8,
- custom_filename=self.create_custom_filename(video.title, ext, resolution=info.resolution),
+ custom_filename=self.create_custom_filename(video.title, ext, file_id=video_id, resolution=info.resolution),
thumbnail=video.thumb,
)
diff --git a/cyberdrop_dl/crawlers/playmate.py b/cyberdrop_dl/crawlers/playmate.py
index c52e289a7..b268a9659 100644
--- a/cyberdrop_dl/crawlers/playmate.py
+++ b/cyberdrop_dl/crawlers/playmate.py
@@ -46,7 +46,7 @@ class PlaymateCrawler(Crawler):
video.title,
ext := ".mp4",
m3u8=m3u8,
- custom_filename=self.create_custom_filename(video.title, ext, resolution=info.resolution),
+ custom_filename=self.create_custom_filename(video.title, ext, file_id=video_id, resolution=info.resolution),
thumbnail=video.thumb,
)
diff --git a/cyberdrop_dl/crawlers/streamfile.py b/cyberdrop_dl/crawlers/streamfile.py
index 5e241cd4a..b45187f92 100644
--- a/cyberdrop_dl/crawlers/streamfile.py
+++ b/cyberdrop_dl/crawlers/streamfile.py
@@ -41,7 +41,7 @@ class StreamFileCrawler(Crawler):
video.title,
ext := ".mp4",
m3u8=m3u8,
- custom_filename=self.create_custom_filename(video.title, ext, resolution=info.resolution),
+ custom_filename=self.create_custom_filename(video.title, ext, file_id=video_id, resolution=info.resolution),
thumbnail=video.thumb,
)
diff --git a/cyberdrop_dl/crawlers/vidara.py b/cyberdrop_dl/crawlers/vidara.py
index f311a4312..6a9d7834c 100644
--- a/cyberdrop_dl/crawlers/vidara.py
+++ b/cyberdrop_dl/crawlers/vidara.py
@@ -54,7 +54,7 @@ class VidaraCrawler(Crawler):
video.title,
ext := ".mp4",
m3u8=m3u8,
- custom_filename=self.create_custom_filename(video.title, ext, resolution=info.resolution),
+ custom_filename=self.create_custom_filename(video.title, ext, file_id=video_id, resolution=info.resolution),
thumbnail=video.thumb,
)