From 72434a90d6a3dbba48d40a23b840befe7649b558 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 14 Dec 2024 16:30:14 +0100 Subject: fix(yt_dlp/wrappers/info_json): Add further fields to `RequestedDownloads` --- crates/yt_dlp/src/wrapper/info_json.rs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'crates/yt_dlp/src/wrapper/info_json.rs') diff --git a/crates/yt_dlp/src/wrapper/info_json.rs b/crates/yt_dlp/src/wrapper/info_json.rs index dcf011b..35d155e 100644 --- a/crates/yt_dlp/src/wrapper/info_json.rs +++ b/crates/yt_dlp/src/wrapper/info_json.rs @@ -168,12 +168,13 @@ pub struct RequestedDownloads { pub _version: Version, pub abr: f64, pub acodec: String, - pub aspect_ratio: f64, - pub asr: u32, + pub aspect_ratio: Option, + pub asr: Option, pub audio_channels: Option, + pub audio_ext: Option, pub chapters: Option>, pub duration: Option, - pub dynamic_range: String, + pub dynamic_range: Option, pub ext: String, pub filename: PathBuf, pub filepath: PathBuf, @@ -181,17 +182,22 @@ pub struct RequestedDownloads { pub format: String, pub format_id: String, pub format_note: String, - pub fps: f64, - pub height: u32, + pub fps: Option, + pub has_drm: Option, + pub height: Option, + pub http_headers: Option, pub infojson_filename: PathBuf, pub language: Option, + pub manifest_url: Option, pub protocol: String, - pub requested_formats: Vec, + pub requested_formats: Option>, pub resolution: String, pub tbr: f64, + pub url: Option, pub vbr: f64, pub vcodec: String, - pub width: u32, + pub video_ext: Option, + pub width: Option, } #[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd)] -- cgit 1.4.1