added headers

This commit is contained in:
Simon
2026-02-23 09:03:02 +00:00
parent becfd52e17
commit 00c8c99f09

View File

@@ -437,7 +437,15 @@ impl HentaihavenProvider {
episode_id episode_id
); );
let format = VideoFormat::new(episode_url, "1080p".to_string(), "m3u8".to_string()) 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); formats.push(format);
} }
if formats.is_empty() { if formats.is_empty() {