From 497f22ee49e0476203e75abef56413e891a584cb Mon Sep 17 00:00:00 2001 From: ByteDream Date: Fri, 13 Jan 2023 22:38:29 +0100 Subject: [PATCH] Fix double download progress output message --- crunchy-cli-core/src/cli/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crunchy-cli-core/src/cli/download.rs b/crunchy-cli-core/src/cli/download.rs index 66027a2..05372a4 100644 --- a/crunchy-cli-core/src/cli/download.rs +++ b/crunchy-cli-core/src/cli/download.rs @@ -350,11 +350,11 @@ async fn download_ffmpeg( .arg(target.to_str().unwrap()) .spawn()?; - let _progress_handler = progress!("Generating output file"); + let progress_handler = progress!("Generating output file"); if !ffmpeg.wait()?.success() { bail!("{}", std::io::read_to_string(ffmpeg.stderr.unwrap())?) } - info!("Output file generated"); + progress_handler.stop("Output file generated"); if let Some(mut stdout_file) = stdout_tempfile { let mut stdout = std::io::stdout();