diff --git a/src/config.rs b/src/config.rs index 1632596..e6e8b55 100644 --- a/src/config.rs +++ b/src/config.rs @@ -11,7 +11,7 @@ pub struct Config { } pub fn default_command() -> String { - String::from("mpv --fullscreen {}") + String::from("mpv --fullscreen \"{}\"") } impl Config { diff --git a/src/initialization.rs b/src/initialization.rs index 9ea8feb..4a3525c 100644 --- a/src/initialization.rs +++ b/src/initialization.rs @@ -7,7 +7,7 @@ pub fn init_config() -> AppResult<()> { let mut pattern = String::new(); stdin.read_line(&mut pattern)?; pattern = pattern.trim().to_string(); - println!("How can we show you the next episode? If 'mpv --fullscreen {{}}' is correct, leave it blank."); + println!("How can we show you the next episode? If 'mpv --fullscreen \"{{}}\"' is correct, leave it blank."); let mut command = String::new(); stdin.read_line(&mut command)?; command = command.trim().to_string();