From 68c9070641ac714918c5cfcdbb3c5009113761d1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 14 Dec 2024 12:26:51 +0100 Subject: fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle` --- crates/yt_dlp/src/wrapper/info_json.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crates/yt_dlp/src') 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, + pub fragment_base_url: Option, + pub fragments: Option>, + pub manifest_url: Option, pub name: Option, + pub protocol: Option, pub url: Url, } -- cgit 1.4.1