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 {
continue;
}
for (index, line) in vid.iter().enumerate() {
println!("Line {}: {}", index, line.to_string().trim());
}
// for (index, line) in vid.iter().enumerate() {
// println!("Line {}: {}", index, line.to_string().trim());
// }
let mut title = vid[1].split(">").collect::<Vec<&str>>()[1]
.split("<")
.collect::<Vec<&str>>()[0]
.to_string();
// html decode
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]
.split("&quot;")
.collect::<Vec<&str>>()[0]
.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]
.split("&")
.collect::<Vec<&str>>()[0]