about summary refs log tree commit diff stats
path: root/crates/yt_dlp
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-07 19:33:24 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-07 19:33:24 +0200
commit9c00ecc776b5f9f72d027442cb9754c6a16024ea (patch)
tree6d2918c92661fd1266f1a04dad000821bf841247 /crates/yt_dlp
parentfeat(crates/yt_dlp): Make saving the downloaded info.json configurable (diff)
downloadyt-9c00ecc776b5f9f72d027442cb9754c6a16024ea.tar.gz
yt-9c00ecc776b5f9f72d027442cb9754c6a16024ea.zip
fix(crates/yt_dlp/wrappers/info_json): Add further info.json fields
Diffstat (limited to '')
-rw-r--r--crates/yt_dlp/src/wrapper/info_json.rs11
1 files changed, 11 insertions, 0 deletions
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<FilesToMove>,
     pub __last_playlist_index: Option<u32>,
     pub __post_extractor: Option<String>,
     pub __x_forwarded_for_ip: Option<String>,
@@ -145,6 +146,10 @@ pub struct InfoJson {
 
 #[derive(Debug, Deserialize, Serialize, PartialEq)]
 #[serde(deny_unknown_fields)]
+pub struct FilesToMove {}
+
+#[derive(Debug, Deserialize, Serialize, PartialEq)]
+#[serde(deny_unknown_fields)]
 pub struct RequestedDownloads {
     pub __files_to_merge: Option<Vec<Todo>>,
     pub __finaldir: PathBuf,
@@ -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,