about summary refs log tree commit diff stats
path: root/yt_dlp/src/wrapper
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 09:07:44 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 09:07:44 +0200
commita5a80eb2de4beddca9e1c1478e63eb783c1bdc1d (patch)
tree2bfcaa8e6e5bc0b46fb08b674b797fa5cdbf903b /yt_dlp/src/wrapper
parentrefactor(storage/downloader): Remove unused `get_next_video_watchable` (diff)
downloadyt-a5a80eb2de4beddca9e1c1478e63eb783c1bdc1d.tar.gz
yt-a5a80eb2de4beddca9e1c1478e63eb783c1bdc1d.zip
chore(yt_dlp/info_json): Add further fields
Diffstat (limited to '')
-rw-r--r--yt_dlp/src/wrapper/info_json.rs12
1 files changed, 12 insertions, 0 deletions
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<String>,
+
     #[serde(alias = "Accept")]
     pub accept: Option<String>,
+
+    #[serde(alias = "X-Forwarded-For")]
+    pub x_forwarded_for: Option<String>,
+
     #[serde(alias = "Accept-Language")]
     pub accept_language: Option<String>,
+
     #[serde(alias = "Sec-Fetch-Mode")]
     pub sec_fetch_mode: Option<String>,
 }