doodstream and lulustream in sxyprn integrated

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Simon
2026-05-06 11:17:25 +00:00
committed by ForgeCode
parent 9e8f326518
commit 5e5786010a
7 changed files with 234 additions and 51 deletions

View File

@@ -282,13 +282,36 @@ impl VideoFormat {
http_headers: None,
}
}
#[cfg(any(
not(hottub_single_provider),
hottub_provider = "vrporn",
hottub_provider = "perverzija",
hottub_provider = "porndish",
hottub_provider = "spankbang",
))]
pub fn m3u8(url: String, quality: String, format: String) -> Self {
let _ = format;
VideoFormat {
url,
quality,
format: format, // Default format
format_id: Some("m3u8-1080".to_string()),
format_note: None,
filesize: None,
asr: None,
fps: None,
width: None,
height: None,
tbr: None,
language: None,
language_preference: None,
ext: Some("m3u8".to_string()),
vcodec: None,
acodec: None,
dynamic_range: None,
abr: None,
vbr: None,
container: None,
protocol: Some("m3u8_native".to_string()),
audio_ext: Some("none".to_string()),
video_ext: Some("m3u8".to_string()),
resolution: None,
http_headers: None,
}
}
pub fn add_http_header(&mut self, key: String, value: String) {
if self.http_headers.is_none() {
self.http_headers = Some(HashMap::new());
@@ -297,14 +320,6 @@ impl VideoFormat {
headers.insert(key, value);
}
}
#[cfg(any(
not(hottub_single_provider),
hottub_provider = "hentaihaven",
hottub_provider = "noodlemagazine",
hottub_provider = "shooshtime",
hottub_provider = "heavyfetish",
hottub_provider = "hsex",
))]
pub fn http_header(&mut self, key: String, value: String) -> Self {
if self.http_headers.is_none() {
self.http_headers = Some(HashMap::new());