Fix ffmpeg failing to download due to video id starting with -
This commit is contained in:
parent
fe4e09ef5a
commit
445cac2d8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue