diff --git a/src/providers/hentaihaven.rs b/src/providers/hentaihaven.rs index 2f92bad..c55ce92 100644 --- a/src/providers/hentaihaven.rs +++ b/src/providers/hentaihaven.rs @@ -437,7 +437,15 @@ impl HentaihavenProvider { episode_id ); let format = VideoFormat::new(episode_url, "1080p".to_string(), "m3u8".to_string()) - .format_id(episode_title); + .format_id(episode_title) + .http_header("Connection".to_string(), "keep-alive".to_string()) + .http_header("User-Agent".to_string(), "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0".to_string()) + .http_header("Accept".to_string(), "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8".to_string()) + .http_header("Accept-Language".to_string(), "en-US,en;q=0.5".to_string()) + .http_header("Accept-Encoding".to_string(), "gzip, deflate, br".to_string()) + .http_header("Sec-Fetch-Mode".to_string(), "navigate".to_string()) + .http_header("Origin".to_string(), self.url.clone()) + ; formats.push(format); } if formats.is_empty() {