This commit is contained in:
Simon
2025-08-03 18:49:38 +00:00
parent 37c534f257
commit 5dd92b21c4

View File

@@ -214,19 +214,25 @@ impl PerverzijaProvider {
if vid.len() > 20 { if vid.len() > 20 {
continue; continue;
} }
for (index, line) in vid.iter().enumerate() { // for (index, line) in vid.iter().enumerate() {
println!("Line {}: {}", index, line.to_string().trim()); // println!("Line {}: {}", index, line.to_string().trim());
} // }
let mut title = vid[1].split(">").collect::<Vec<&str>>()[1] let mut title = vid[1].split(">").collect::<Vec<&str>>()[1]
.split("<") .split("<")
.collect::<Vec<&str>>()[0] .collect::<Vec<&str>>()[0]
.to_string(); .to_string();
// html decode // html decode
title = decode(title.as_bytes()).to_string().unwrap_or(title); title = decode(title.as_bytes()).to_string().unwrap_or(title);
if !vid[1].contains("iframe src=&quot;") {
continue;
}
let url_str = vid[1].split("iframe src=&quot;").collect::<Vec<&str>>()[1] let url_str = vid[1].split("iframe src=&quot;").collect::<Vec<&str>>()[1]
.split("&quot;") .split("&quot;")
.collect::<Vec<&str>>()[0] .collect::<Vec<&str>>()[0]
.to_string().replace("index.php", "xs1.php"); .to_string().replace("index.php", "xs1.php");
if url_str.starts_with("https://streamtape.com/"){
continue; // Skip Streamtape links
}
let id = url_str.split("data=").collect::<Vec<&str>>()[1] let id = url_str.split("data=").collect::<Vec<&str>>()[1]
.split("&") .split("&")
.collect::<Vec<&str>>()[0] .collect::<Vec<&str>>()[0]