add episode title as format_note

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

View File

@@ -437,14 +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.clone())
.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())
.http_header("Origin".to_string(), self.url.clone())
.format_note(episode_title.clone())
;
formats.push(format);
}