This commit is contained in:
Simon
2025-07-19 15:07:30 +00:00
parent 9102a9f43f
commit 624ee7d782

View File

@@ -56,7 +56,7 @@ impl PornhubProvider {
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
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 video_items: Vec<VideoItem> = self.get_video_items_from_html(text.clone(),"<ul id=\"video");
if !video_items.is_empty() {