From 822fd0d43b768adb436802356017f0d2d3d91adf Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Wed, 25 Mar 2020 10:47:34 +0400
Subject: [PATCH] Fixed default config file for playing videos with spaces in
 names.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 src/config.rs         | 2 +-
 src/initialization.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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();
-- 
GitLab