allpornstreamd done and sxyprn updated

This commit is contained in:
Simon
2026-05-19 13:48:50 +00:00
committed by ForgeCode
parent bd8382d579
commit ad1ed1b68e
8 changed files with 1035 additions and 33 deletions

View File

@@ -298,13 +298,13 @@ impl SxyprnProvider {
}
// take content before "<script async"
let blog_posts = html
.split("blog_posts")
let main_content = html
.split("main_content")
.nth(1)
.ok_or_else(|| ErrorKind::Parse("missing 'blog_posts' split point".into()))?;
.ok_or_else(|| ErrorKind::Parse("missing 'main_content' split point".into()))?;
// split into video segments (skip the first chunk)
let raw_videos: Vec<&str> = blog_posts.split("post_el_small'").skip(1).collect();
let raw_videos: Vec<&str> = main_content.split("post_el_small'").skip(1).collect();
if raw_videos.is_empty() {
return Err(ErrorKind::Parse("no 'post_el_small\'' segments found".into()).into());
@@ -485,19 +485,20 @@ impl SxyprnProvider {
.format_note(sxyprn_url.split("/").nth(4).unwrap_or("sxyprn").to_string()),
);
// let doodstream_urls: Vec<String> = title_links
// .iter()
// .filter(|url| proxy_name_for_url(url).as_deref() == Some("doodstream"))
// .map(|url| rewrite_hoster_url(options, url))
// .collect();
let doodstream_urls: Vec<String> = title_links
.iter()
.filter(|url| proxy_name_for_url(url).as_deref() == Some("doodstream"))
.map(|url| rewrite_hoster_url(options, url))
.collect();
// for dood_url in doodstream_urls {
// formats.push(
// VideoFormat::m3u8(dood_url.clone(), "auto".to_string(), "m3u8".to_string())
// .format_note("doodstream".to_string())
// .format_id("doodstream".to_string()),
// );
// }
for dood_url in doodstream_urls {
formats.push(
VideoFormat::m3u8(dood_url.clone(), "auto".to_string(), "m3u8".to_string())
.format_note("doodstream".to_string())
.format_id("doodstream".to_string())
.http_header("Referer".to_string(), "https://sxyprn.com/".to_string()),
);
}
// let lulustream_urls: Vec<String> = title_links
// .iter()
@@ -528,13 +529,14 @@ impl SxyprnProvider {
formats.push(
VideoFormat::m3u8(vidara_url.clone(), "1080".to_string(), "m3u8".to_string())
.format_note(vidara_url.split("/").nth(4).unwrap_or("vidara").to_string())
.format_id("vidara".to_string()),
.format_id("vidara".to_string())
.http_header("Referer".to_string(), "https://sxyprn.com/".to_string()),
);
}
let mut video_item = VideoItem::new(
id.clone(),
title,
url.clone(),
format!("https://sxyprn.com/post/{}", url.clone()),
"sxyprn".to_string(),
thumb,
duration,