Fix ffmpeg failing to download due to video id starting with -

This commit is contained in:
blank X 2021-06-21 16:00:05 +07:00
parent fe4e09ef5a
commit 445cac2d8f
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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);