Fixed default config file for playing videos with spaces in names.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2020-03-25 10:47:34 +04:00
parent 6f643211d3
commit 822fd0d43b
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ pub struct Config {
} }
pub fn default_command() -> String { pub fn default_command() -> String {
String::from("mpv --fullscreen {}") String::from("mpv --fullscreen \"{}\"")
} }
impl Config { impl Config {

View File

@ -7,7 +7,7 @@ pub fn init_config() -> AppResult<()> {
let mut pattern = String::new(); let mut pattern = String::new();
stdin.read_line(&mut pattern)?; stdin.read_line(&mut pattern)?;
pattern = pattern.trim().to_string(); 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(); let mut command = String::new();
stdin.read_line(&mut command)?; stdin.read_line(&mut command)?;
command = command.trim().to_string(); command = command.trim().to_string();