pornhub bugfix

This commit is contained in:
Simon
2025-08-10 15:15:24 +00:00
parent 97066a184a
commit 6405596fb8

View File

@@ -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(){