This commit is contained in:
Simon
2025-09-19 18:53:50 +00:00
parent d9fed99104
commit f12f50e787

View File

@@ -163,13 +163,11 @@ impl ParadisehillProvider {
let video_urls = vid.split("var videoList = ").collect::<Vec<&str>>()[1]
.split("\"src\":\"")
.collect::<Vec<&str>>();
.collect::<Vec<&str>>()[1..].to_vec();
let mut formats = vec![];
let mut formatctr =1;
for url in video_urls {
let video_url = vid.split("var videoList = ").collect::<Vec<&str>>()[1]
.split("\"src\":\"")
.collect::<Vec<&str>>()[1]
println!("{}", url);
let video_url = url
.split("\"")
.collect::<Vec<&str>>()[0]
.replace("\\", "")
@@ -178,9 +176,8 @@ impl ParadisehillProvider {
videos::VideoFormat::new(video_url.clone(), "1080".to_string(), "mp4".to_string())
.protocol("https".to_string())
.format_id(video_url.split("/").last().unwrap().to_string())
.format_note(format!("{} - {}", formatctr, video_url.split("_").last().unwrap().replace(".mp4", "").to_string()))
.format_note(format!("{}", video_url.split("_").last().unwrap().replace(".mp4", "").to_string()))
;
formatctr += 1;
formats.push(format);
}