From a5a80eb2de4beddca9e1c1478e63eb783c1bdc1d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 09:07:44 +0200 Subject: chore(yt_dlp/info_json): Add further fields --- yt_dlp/src/wrapper/info_json.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'yt_dlp/src/wrapper') diff --git a/yt_dlp/src/wrapper/info_json.rs b/yt_dlp/src/wrapper/info_json.rs index 73df11c..9c0d464 100644 --- a/yt_dlp/src/wrapper/info_json.rs +++ b/yt_dlp/src/wrapper/info_json.rs @@ -276,9 +276,15 @@ pub enum SponsorblockChapterCategory { #[serde(alias = "filler")] Filler, + #[serde(alias = "interaction")] + Interaction, + #[serde(alias = "poi_highlight")] PoiHighlight, + #[serde(alias = "preview")] + Preview, + #[serde(alias = "sponsor")] Sponsor, @@ -514,10 +520,16 @@ pub struct DownloaderOptions { pub struct HttpHeader { #[serde(alias = "User-Agent")] pub user_agent: Option, + #[serde(alias = "Accept")] pub accept: Option, + + #[serde(alias = "X-Forwarded-For")] + pub x_forwarded_for: Option, + #[serde(alias = "Accept-Language")] pub accept_language: Option, + #[serde(alias = "Sec-Fetch-Mode")] pub sec_fetch_mode: Option, } -- cgit 1.4.1