From 269cf79c5e25b6b3440ad11dee4b0662cdc74221 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 21 Aug 2024 19:48:41 +0200 Subject: docs(yt_dlp/lib): Improve some comments --- yt_dlp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/src/lib.rs') diff --git a/yt_dlp/src/lib.rs b/yt_dlp/src/lib.rs index 5bb02c1..27f1a58 100644 --- a/yt_dlp/src/lib.rs +++ b/yt_dlp/src/lib.rs @@ -331,8 +331,8 @@ pub async fn download( info!("Started downloading url: '{}'", url); let info_json = extract_info(download_options, url, true, true).await?; + // Try to work around yt-dlp type weirdness let result_string = if let Some(filename) = info_json.filename { - // Try to work around yt-dlp type weirdness filename } else { (&info_json.requested_downloads.expect("This must exist")[0].filename).to_owned() -- cgit 1.4.1