adapted proxies
This commit is contained in:
@@ -68,11 +68,11 @@ impl HentaimoonProvider {
|
|||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let mut response = client.get(video_url.clone())
|
let mut response = client.get(video_url.clone())
|
||||||
.proxy(proxy.clone())
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||||
.proxy(proxy.clone())
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -141,13 +141,13 @@ impl HentaimoonProvider {
|
|||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let mut response = client.get(video_url.clone())
|
let mut response = client.get(video_url.clone())
|
||||||
.proxy(proxy.clone())
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
|
|
||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
.proxy(proxy.clone())
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ impl HomoxxxProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
||||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -144,7 +144,7 @@ impl HomoxxxProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ impl OkpornProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -142,7 +142,7 @@ impl OkpornProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ impl OkxxxProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
||||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -144,7 +144,7 @@ impl OkxxxProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ impl PerfectgirlsProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
||||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -146,7 +146,7 @@ impl PerfectgirlsProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ impl PmvhavenProvider {
|
|||||||
|
|
||||||
let response = client
|
let response = client
|
||||||
.post(url.clone())
|
.post(url.clone())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.json(&request)
|
.json(&request)
|
||||||
.header("Content-Type", "text/plain;charset=UTF-8")
|
.header("Content-Type", "text/plain;charset=UTF-8")
|
||||||
.send()
|
.send()
|
||||||
@@ -362,7 +362,7 @@ impl PmvhavenProvider {
|
|||||||
|
|
||||||
let response = client
|
let response = client
|
||||||
.post(url.clone())
|
.post(url.clone())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.json(&request)
|
.json(&request)
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.header("Accept", "application/json")
|
.header("Accept", "application/json")
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ impl PornhatProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
println!("Redirection detected, following to: {}", response.headers()["Location"].to_str().unwrap());
|
||||||
response = client.get(response.headers()["Location"].to_str().unwrap())
|
response = client.get(response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -146,7 +146,7 @@ impl PornhatProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ impl PornhubProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -168,7 +168,7 @@ impl PornhubProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ impl RedtubeProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
@@ -141,7 +141,7 @@ impl RedtubeProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ impl Rule34videoProvider {
|
|||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
// .proxy(proxy)
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user