bugfix
This commit is contained in:
@@ -110,7 +110,7 @@ impl PornhubProvider {
|
|||||||
let mut url = format!("{}/video/search?search={}&page={}", self.url, search_string, page);
|
let mut url = format!("{}/video/search?search={}&page={}", self.url, search_string, page);
|
||||||
if query.starts_with("@"){
|
if query.starts_with("@"){
|
||||||
let url_parts = query[1..].split(":").collect::<Vec<&str>>();
|
let url_parts = query[1..].split(":").collect::<Vec<&str>>();
|
||||||
url = [self.url.to_string(), url_parts[0].to_string(), url_parts[1].replace("-", " ").to_string(), "videos?page=".to_string()].join("/");
|
url = [self.url.to_string(), url_parts[0].to_string(), url_parts[1].replace(" ", "-").to_string(), "videos?page=".to_string()].join("/");
|
||||||
url += &page.to_string();
|
url += &page.to_string();
|
||||||
if query.contains("@model") || query.contains("@pornstar"){
|
if query.contains("@model") || query.contains("@pornstar"){
|
||||||
split_string = "mostRecentVideosSection";
|
split_string = "mostRecentVideosSection";
|
||||||
@@ -265,7 +265,7 @@ impl PornhubProvider {
|
|||||||
.split("\"")
|
.split("\"")
|
||||||
.collect::<Vec<&str>>()[0]
|
.collect::<Vec<&str>>()[0]
|
||||||
.split("/").collect::<Vec<&str>>();
|
.split("/").collect::<Vec<&str>>();
|
||||||
tag = format!("@{}:{}", uploader_href[1], uploader_href[2]);
|
tag = format!("@{}:{}", uploader_href[1], uploader_href[2].replace("-", " "));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user