pornxp fixes
This commit is contained in:
@@ -42,7 +42,7 @@ impl PornxpProvider {
|
|||||||
name: "PornXP".to_string(),
|
name: "PornXP".to_string(),
|
||||||
description: "For Those Who Know The Difference".to_string(),
|
description: "For Those Who Know The Difference".to_string(),
|
||||||
premium: false,
|
premium: false,
|
||||||
favicon: "https://www.google.com/s2/favicons?sz=64&domain=pornxp.me".to_string(),
|
favicon: "https://www.google.com/s2/favicons?sz=64&domain=pornxp.ph".to_string(),
|
||||||
status: "active".to_string(),
|
status: "active".to_string(),
|
||||||
categories: vec![],
|
categories: vec![],
|
||||||
options: vec![
|
options: vec![
|
||||||
@@ -189,12 +189,12 @@ impl PornxpProvider {
|
|||||||
let id = video_url.split("/").collect::<Vec<&str>>()[4].to_string();
|
let id = video_url.split("/").collect::<Vec<&str>>()[4].to_string();
|
||||||
|
|
||||||
let thumb = match video_segment.contains("<img class=\"item_img lazy\""){
|
let thumb = match video_segment.contains("<img class=\"item_img lazy\""){
|
||||||
true => format!("https:{}", video_segment.split("<img ").collect::<Vec<&str>>()[1]
|
true => format!("{}{}", self.url,video_segment.split("<img ").collect::<Vec<&str>>()[1]
|
||||||
.split("data-src=\"").collect::<Vec<&str>>()[1]
|
.split("data-src=\"").collect::<Vec<&str>>()[1]
|
||||||
.split("\"")
|
.split("\"")
|
||||||
.collect::<Vec<&str>>()[0]
|
.collect::<Vec<&str>>()[0]
|
||||||
.to_string()),
|
.to_string()),
|
||||||
false => format!("https:{}", video_segment.split("<img ").collect::<Vec<&str>>()[1]
|
false => format!("{}{}", self.url, video_segment.split("<img ").collect::<Vec<&str>>()[1]
|
||||||
.split("src=\"").collect::<Vec<&str>>()[1]
|
.split("src=\"").collect::<Vec<&str>>()[1]
|
||||||
.split("\"")
|
.split("\"")
|
||||||
.collect::<Vec<&str>>()[0]
|
.collect::<Vec<&str>>()[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user