about summary refs log tree commit diff stats
path: root/crates/yt_dlp/src/lib.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 15:46:09 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 15:46:09 +0200
commitcedffd59dd4047908a87e7c52ae5a9d5876a8b15 (patch)
treed2d956db774d08cf6539ae56cfa932fe13a4f1ad /crates/yt_dlp/src/lib.rs
parentfix(yt_dlp/lib/hook): Don't print download progress, when debug is logged (diff)
downloadyt-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/lib.rs')
-rw-r--r--crates/yt_dlp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/yt_dlp/src/lib.rs b/crates/yt_dlp/src/lib.rs
index d9b10c2..7e11600 100644
--- a/crates/yt_dlp/src/lib.rs
+++ b/crates/yt_dlp/src/lib.rs
@@ -172,7 +172,7 @@ pub fn progress_hook<'a>(py: Python, input: Bound<'_, PyDict>) -> PyResult<()> {
             "vtt" => {
                 format!(
                     "Subtitles ({})",
-                    get! {is_string, as_str, "info_dict", "name"}
+                    default_get! {as_str, "<No Subtitle Language>", "info_dict", "name"}
                 )
             }
             title_extension @ ("webm" | "mp4" | "m4a") => {