bugfix
This commit is contained in:
@@ -163,13 +163,11 @@ impl ParadisehillProvider {
|
|||||||
|
|
||||||
let video_urls = vid.split("var videoList = ").collect::<Vec<&str>>()[1]
|
let video_urls = vid.split("var videoList = ").collect::<Vec<&str>>()[1]
|
||||||
.split("\"src\":\"")
|
.split("\"src\":\"")
|
||||||
.collect::<Vec<&str>>();
|
.collect::<Vec<&str>>()[1..].to_vec();
|
||||||
let mut formats = vec![];
|
let mut formats = vec![];
|
||||||
let mut formatctr =1;
|
|
||||||
for url in video_urls {
|
for url in video_urls {
|
||||||
let video_url = vid.split("var videoList = ").collect::<Vec<&str>>()[1]
|
println!("{}", url);
|
||||||
.split("\"src\":\"")
|
let video_url = url
|
||||||
.collect::<Vec<&str>>()[1]
|
|
||||||
.split("\"")
|
.split("\"")
|
||||||
.collect::<Vec<&str>>()[0]
|
.collect::<Vec<&str>>()[0]
|
||||||
.replace("\\", "")
|
.replace("\\", "")
|
||||||
@@ -178,9 +176,8 @@ impl ParadisehillProvider {
|
|||||||
videos::VideoFormat::new(video_url.clone(), "1080".to_string(), "mp4".to_string())
|
videos::VideoFormat::new(video_url.clone(), "1080".to_string(), "mp4".to_string())
|
||||||
.protocol("https".to_string())
|
.protocol("https".to_string())
|
||||||
.format_id(video_url.split("/").last().unwrap().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);
|
formats.push(format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user