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);
|
||||
if query.starts_with("@"){
|
||||
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();
|
||||
if query.contains("@model") || query.contains("@pornstar"){
|
||||
split_string = "mostRecentVideosSection";
|
||||
@@ -265,7 +265,7 @@ impl PornhubProvider {
|
||||
.split("\"")
|
||||
.collect::<Vec<&str>>()[0]
|
||||
.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