skip non-working videos

This commit is contained in:
Simon
2025-09-13 07:39:56 +00:00
parent 5e5838debf
commit 428307f52d

View File

@@ -125,6 +125,9 @@ impl YoujizzProvider {
// for (index, line) in vid.iter().enumerate() {
// println!("Line {}: {}", index, line);
// }
if video_segment.contains("https://cdne-static.cdn1122.com/app/1/images/spacer.gif") {
continue;
}
let video_url: String = format!("{}{}",self.url, video_segment.split("href=\"").collect::<Vec<&str>>()[1]
.split("\"")
.collect::<Vec<&str>>()[0].to_string());