diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 12:26:51 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-14 12:26:51 +0100 |
commit | 68c9070641ac714918c5cfcdbb3c5009113761d1 (patch) | |
tree | af4ac40d60cc640093e642cf173192700043e4ec | |
parent | fix(yt_dlp/wrappers/info_json): Treat `Extractor` and `ExtractorKey` as Strings (diff) | |
download | yt-68c9070641ac714918c5cfcdbb3c5009113761d1.tar.gz yt-68c9070641ac714918c5cfcdbb3c5009113761d1.zip |
fix(yt_dlp/wrappers/info_json): Add missing fields to `Subtitle`
Diffstat (limited to '')
-rw-r--r-- | crates/yt_dlp/src/wrapper/info_json.rs | 7 |
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, } |