bugfix
This commit is contained in:
@@ -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="") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let url_str = vid[1].split("iframe src="").collect::<Vec<&str>>()[1]
|
let url_str = vid[1].split("iframe src="").collect::<Vec<&str>>()[1]
|
||||||
.split(""")
|
.split(""")
|
||||||
.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]
|
||||||
|
|||||||
Reference in New Issue
Block a user