forward
This commit is contained in:
@@ -56,7 +56,7 @@ impl PornhubProvider {
|
|||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let response = client.get(url.clone()).proxy(proxy).send().await?;
|
let response = client.get(url.clone()).proxy(proxy).send().await?;
|
||||||
if response.status().is_success() {
|
if response.status().is_success() || response.status().is_redirection() {
|
||||||
let text = response.text().await?;
|
let text = response.text().await?;
|
||||||
let video_items: Vec<VideoItem> = self.get_video_items_from_html(text.clone(),"<ul id=\"video");
|
let video_items: Vec<VideoItem> = self.get_video_items_from_html(text.clone(),"<ul id=\"video");
|
||||||
if !video_items.is_empty() {
|
if !video_items.is_empty() {
|
||||||
|
|||||||
Reference in New Issue
Block a user