Fix Windows output progress bar (#305)

This commit is contained in:
bytedream 2024-01-10 21:02:03 +01:00
parent 333d574e56
commit 35447c5cb0
2 changed files with 45 additions and 18 deletions

View file

@ -432,7 +432,7 @@ impl Downloader {
"-y".to_string(),
"-hide_banner".to_string(),
"-vstats_file".to_string(),
fifo.name(),
fifo.path().to_string_lossy().to_string(),
];
command_args.extend(input_presets);
command_args.extend(input);
@ -584,7 +584,7 @@ impl Downloader {
bail!("{}", String::from_utf8_lossy(result.stderr.as_slice()))
}
ffmpeg_progress_cancel.cancel();
Ok(ffmpeg_progress.await??)
ffmpeg_progress.await?
}
async fn check_free_space(