fixes for perfectgirls and missav
This commit is contained in:
@@ -221,11 +221,14 @@ impl PerfectgirlsProvider {
|
||||
.to_string();
|
||||
let duration = parse_time_to_seconds(&raw_duration).unwrap_or(0) as u32;
|
||||
|
||||
let thumb = video_segment.split(" class=\"thumb lazy-load\"").collect::<Vec<&str>>()[1]
|
||||
let mut thumb = video_segment.split(" class=\"thumb lazy-load\"").collect::<Vec<&str>>()[1]
|
||||
.split("data-original=\"").collect::<Vec<&str>>()[1]
|
||||
.split("\"")
|
||||
.collect::<Vec<&str>>()[0]
|
||||
.to_string();
|
||||
if thumb.starts_with("//"){
|
||||
thumb = format!("https:{}",thumb);
|
||||
}
|
||||
|
||||
let mut tags = vec![];
|
||||
if video_segment.contains("href=\"/channels/"){
|
||||
|
||||
Reference in New Issue
Block a user