From 9c00ecc776b5f9f72d027442cb9754c6a16024ea Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 7 Oct 2024 19:33:24 +0200 Subject: fix(crates/yt_dlp/wrappers/info_json): Add further info.json fields --- crates/yt_dlp/src/wrapper/info_json.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/yt_dlp/src/wrapper/info_json.rs b/crates/yt_dlp/src/wrapper/info_json.rs index 6597348..50a026d 100644 --- a/crates/yt_dlp/src/wrapper/info_json.rs +++ b/crates/yt_dlp/src/wrapper/info_json.rs @@ -24,6 +24,7 @@ type Todo = String; #[derive(Debug, Deserialize, Serialize, PartialEq)] #[serde(deny_unknown_fields)] pub struct InfoJson { + pub __files_to_move: Option, pub __last_playlist_index: Option, pub __post_extractor: Option, pub __x_forwarded_for_ip: Option, @@ -143,6 +144,10 @@ pub struct InfoJson { pub width: Option, } +#[derive(Debug, Deserialize, Serialize, PartialEq)] +#[serde(deny_unknown_fields)] +pub struct FilesToMove {} + #[derive(Debug, Deserialize, Serialize, PartialEq)] #[serde(deny_unknown_fields)] pub struct RequestedDownloads { @@ -198,6 +203,9 @@ pub enum SubtitleExt { #[serde(alias = "vtt")] Vtt, + #[serde(alias = "mp4")] + Mp4, + #[serde(alias = "json")] Json, #[serde(alias = "json3")] @@ -279,6 +287,9 @@ pub enum SponsorblockChapterCategory { #[serde(alias = "interaction")] Interaction, + #[serde(alias = "music_offtopic")] + MusicOfftopic, + #[serde(alias = "poi_highlight")] PoiHighlight, -- cgit 1.4.1