diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 15:46:09 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 15:46:09 +0200 |
commit | cedffd59dd4047908a87e7c52ae5a9d5876a8b15 (patch) | |
tree | d2d956db774d08cf6539ae56cfa932fe13a4f1ad /crates/yt_dlp/src/wrapper | |
parent | fix(yt_dlp/lib/hook): Don't print download progress, when debug is logged (diff) | |
download | yt-cedffd59dd4047908a87e7c52ae5a9d5876a8b15.tar.gz yt-cedffd59dd4047908a87e7c52ae5a9d5876a8b15.zip |
fix(yt_dlp/info_json): Accept further missing fields in the info_json
Diffstat (limited to 'crates/yt_dlp/src/wrapper')
-rw-r--r-- | crates/yt_dlp/src/wrapper/info_json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/yt_dlp/src/wrapper/info_json.rs b/crates/yt_dlp/src/wrapper/info_json.rs index 9c0d464..6597348 100644 --- a/crates/yt_dlp/src/wrapper/info_json.rs +++ b/crates/yt_dlp/src/wrapper/info_json.rs @@ -159,14 +159,14 @@ pub struct RequestedDownloads { pub acodec: String, pub aspect_ratio: f64, pub asr: u32, - pub audio_channels: u32, + pub audio_channels: Option<u32>, pub chapters: Option<Vec<SponsorblockChapter>>, pub duration: Option<f64>, pub dynamic_range: String, pub ext: String, pub filename: PathBuf, pub filepath: PathBuf, - pub filesize_approx: u64, + pub filesize_approx: Option<u64>, pub format: String, pub format_id: String, pub format_note: String, @@ -188,7 +188,7 @@ pub struct RequestedDownloads { pub struct Subtitle { pub ext: SubtitleExt, pub filepath: PathBuf, - pub name: String, + pub name: Option<String>, pub url: Url, } |