summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube-mpv.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index 0dd72a9..08d7f86 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -40,6 +40,8 @@
(defun yeetube-mpv-process (command)
"Start yeetube process for shell COMMAND."
+ (unless yeetube-mpv-path
+ (error "Mpv not found. Install mpv or change the value of yeetube-player"))
(let ((yeetube-mpv-process "yeetube"))
(dolist (process (process-list))
(when (string-match yeetube-mpv-process (process-name process))