about summary refs log tree commit diff stats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-14 16:30:14 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-14 16:31:07 +0100
commit72434a90d6a3dbba48d40a23b840befe7649b558 (patch)
tree2332b2258b0cc2ada5d15b50b1d2f5005b6bee03 /crates
parentchore(version): v1.4.0 (diff)
downloadyt-72434a90d6a3dbba48d40a23b840befe7649b558.tar.gz
yt-72434a90d6a3dbba48d40a23b840befe7649b558.zip
fix(yt_dlp/wrappers/info_json): Add further fields to `RequestedDownloads`
Diffstat (limited to 'crates')
-rw-r--r--crates/yt_dlp/src/wrapper/info_json.rs20
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)]