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-12-14 12:26:51 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-14 12:26:51 +0100
commit68c9070641ac714918c5cfcdbb3c5009113761d1 (patch)
treeaf4ac40d60cc640093e642cf173192700043e4ec /crates/yt_dlp
parentfix(yt_dlp/wrappers/info_json): Treat `Extractor` and `ExtractorKey` as Strings (diff)
downloadyt-68c9070641ac714918c5cfcdbb3c5009113761d1.tar.gz
yt-68c9070641ac714918c5cfcdbb3c5009113761d1.zip
fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle`
Diffstat (limited to 'crates/yt_dlp')
-rw-r--r--crates/yt_dlp/src/wrapper/info_json.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/yt_dlp/src/wrapper/info_json.rs b/crates/yt_dlp/src/wrapper/info_json.rs
index f7ecc17..dcf011b 100644
--- a/crates/yt_dlp/src/wrapper/info_json.rs
+++ b/crates/yt_dlp/src/wrapper/info_json.rs
@@ -194,12 +194,17 @@ pub struct RequestedDownloads {
     pub width: u32,
 }
 
-#[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd, Ord, Eq)]
+#[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd)]
 #[serde(deny_unknown_fields)]
 pub struct Subtitle {
     pub ext: SubtitleExt,
     pub filepath: PathBuf,
+    pub filesize: Option<u64>,
+    pub fragment_base_url: Option<Url>,
+    pub fragments: Option<Vec<Fragment>>,
+    pub manifest_url: Option<Url>,
     pub name: Option<String>,
+    pub protocol: Option<Todo>,
     pub url: Url,
 }