bugfix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user