pornhub bugfix
This commit is contained in:
@@ -103,6 +103,7 @@ impl PornhubProvider {
|
||||
Ok(video_items)
|
||||
}
|
||||
}
|
||||
|
||||
async fn query(
|
||||
&self,
|
||||
cache: VideoCache,
|
||||
@@ -133,7 +134,12 @@ impl PornhubProvider {
|
||||
_ => "",
|
||||
}
|
||||
} else{
|
||||
video_url += format!("&o={}", sort).as_str();
|
||||
video_url += match sort {
|
||||
"mr" => "",
|
||||
"mv" => "&o=mv",
|
||||
"tr" => "&o=tr",
|
||||
_ => "",
|
||||
}
|
||||
}
|
||||
|
||||
// Check our Video Cache. If the result is younger than 1 hour, we return it.
|
||||
@@ -155,7 +161,7 @@ impl PornhubProvider {
|
||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||
|
||||
let mut response = client.get(video_url.clone())
|
||||
.proxy(proxy.clone())
|
||||
//.proxy(proxy.clone())
|
||||
.send().await?;
|
||||
|
||||
if response.status().is_redirection(){
|
||||
|
||||
Reference in New Issue
Block a user