Fixed default config file for playing videos with spaces in names.
Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
@ -11,7 +11,7 @@ pub struct Config {
|
||||
}
|
||||
|
||||
pub fn default_command() -> String {
|
||||
String::from("mpv --fullscreen {}")
|
||||
String::from("mpv --fullscreen \"{}\"")
|
||||
}
|
||||
|
||||
impl Config {
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user