diff options
Diffstat (limited to 'crates/yt_dlp/src')
-rw-r--r-- | crates/yt_dlp/src/wrapper/info_json.rs | 20 |
1 files changed, 13 insertions, 7 deletions
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<f64>, + pub asr: Option<u32>, pub audio_channels: Option<u32>, + pub audio_ext: Option<String>, pub chapters: Option<Vec<SponsorblockChapter>>, pub duration: Option<f64>, - pub dynamic_range: String, + pub dynamic_range: Option<String>, 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<f64>, + pub has_drm: Option<bool>, + pub height: Option<u32>, + pub http_headers: Option<HttpHeader>, pub infojson_filename: PathBuf, pub language: Option<String>, + pub manifest_url: Option<Url>, pub protocol: String, - pub requested_formats: Vec<Format>, + pub requested_formats: Option<Vec<Format>>, pub resolution: String, pub tbr: f64, + pub url: Option<Url>, pub vbr: f64, pub vcodec: String, - pub width: u32, + pub video_ext: Option<String>, + pub width: Option<u32>, } #[derive(Debug, Deserialize, Serialize, PartialEq, PartialOrd)] |