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

@@ -38,7 +38,7 @@ impl SxyprnProxy {
) -> String {
let mut requester = requester.get_ref().clone();
let url = "https://sxyprn.com/".to_string() + &url;
println!("Fetching URL: {}", url);
// println!("Fetching URL: {}", url);
let text = requester.get(&url, None).await.unwrap_or("".to_string());
if text.is_empty() {
return "".to_string();
@@ -49,27 +49,27 @@ impl SxyprnProxy {
.split("\"}")
.collect::<Vec<&str>>()[0]
.replace("\\", "");
println!("src: {}", data_string);
// println!("src: {}", data_string);
let mut tmp = data_string
.split("/")
.map(|s| s.to_string())
.collect::<Vec<String>>();
println!("tmp: {:?}", tmp);
// println!("tmp: {:?}", tmp);
tmp[1] = format!(
"{}8/{}",
tmp[1],
boo(ssut51(tmp[6].as_str()), ssut51(tmp[7].as_str()))
);
println!("tmp[1]: {:?}", tmp[1]);
// println!("tmp[1]: {:?}", tmp[1]);
//preda
tmp[5] = format!(
"{}",
tmp[5].parse::<u32>().unwrap() - ssut51(tmp[6].as_str()) - ssut51(tmp[7].as_str())
);
println!("tmp: {:?}", tmp);
// println!("tmp: {:?}", tmp);
let sxyprn_video_url = format!("https://sxyprn.com{}", tmp.join("/"));
println!("sxyprn_video_url: {}", sxyprn_video_url);
// println!("sxyprn_video_url: {}", sxyprn_video_url);
match crate::util::get_redirect_location(&sxyprn_video_url) {
Ok(Some(loc)) => {return format!("https:{}", loc)},
Ok(None) => println!("No redirect found for {}", sxyprn_video_url),