move hard-coded arguments to default config, allowing them to be overwritten

they don't seem to really do much, and can cause problems when using umpv as the command
This commit is contained in:
Matthias Ahouansou 2025-02-28 15:50:40 +00:00
parent 38f5182d7a
commit ff13b56163
No known key found for this signature in database
3 changed files with 3 additions and 5 deletions

4
Cargo.lock generated
View file

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "equivalent"
@ -10,7 +10,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "ff2mpv-rust"
version = "1.1.4"
version = "1.1.5"
dependencies = [
"serde",
"serde_json",

View file

@ -87,9 +87,7 @@ impl Command {
command.stdout(process::Stdio::null());
command.stderr(process::Stdio::null());
command.arg("--no-terminal");
command.args(args);
command.arg("--");
command.arg(url);
Command::detach_mpv(&mut command);

View file

@ -17,7 +17,7 @@ impl Default for Config {
fn default() -> Self {
Self {
player_command: "mpv".to_owned(),
player_args: vec![],
player_args: vec![String::from("--no-terminal"), String::from("--")],
}
}
}