Extend function to get free file

This commit is contained in:
ByteDream 2022-12-02 22:06:08 +01:00
parent e9b3088cde
commit afab3826c9
6 changed files with 37 additions and 17 deletions

View file

@ -178,8 +178,7 @@ impl Execute for Download {
.to_string(),
&format,
)),
)
.0;
);
let use_ffmpeg = if let Some(extension) = path.extension() {
if extension != "ts" {
@ -228,11 +227,7 @@ impl Execute for Download {
}
}
async fn download_ffmpeg(
ctx: &Context,
variant_data: VariantData,
target: &Path,
) -> Result<()> {
async fn download_ffmpeg(ctx: &Context, variant_data: VariantData, target: &Path) -> Result<()> {
let ffmpeg = Command::new("ffmpeg")
.stdin(Stdio::piped())
.stdout(Stdio::null())