removed proxies

This commit is contained in:
Simon
2025-08-01 14:42:04 +00:00
parent faa2cea37e
commit d1a4975aa3
3 changed files with 16 additions and 8 deletions

View File

@@ -55,12 +55,12 @@ impl PornhubProvider {
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
let mut response = client.get(url.clone())
.proxy(proxy.clone())
// .proxy(proxy.clone())
.send().await?;
if response.status().is_redirection(){
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
.proxy(proxy)
// .proxy(proxy)
.send().await?;
}
if response.status().is_success() {