From 445cac2d8fd4f7e2f535c5446ea859750dbebffd Mon Sep 17 00:00:00 2001 From: blank X Date: Mon, 21 Jun 2021 16:00:05 +0700 Subject: [PATCH] Fix ffmpeg failing to download due to video id starting with - --- src/workers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers.rs b/src/workers.rs index e5f250c..868d7f3 100644 --- a/src/workers.rs +++ b/src/workers.rs @@ -481,7 +481,7 @@ async fn start_ffmpeg( command = command.arg("-i").arg(i.url.as_str()); } } - match command.args(&["-c", "copy", filename]).spawn() { + match command.args(&["-c", "copy", "--", filename]).spawn() { Ok(i) => Some(i), Err(err) => { eprintln!("Failed to spawn ffmpeg: {:?}", err);