diff options
Diffstat (limited to 'yeetube-mpv.el')
-rw-r--r-- | yeetube-mpv.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el index 24a10a1..a24e544 100644 --- a/yeetube-mpv.el +++ b/yeetube-mpv.el @@ -36,9 +36,9 @@ (defun yeetube-mpv-check () "Check if mpv and yt-dlp is installed." - (pcase (and (executable-find "mpv") - (executable-find "yt-dlp")) - (`nil (error "Unable to play video. Please install `yt-dlp' and `mpv'")))) + (unless (and (executable-find "mpv") + (executable-find "yt-dlp")) + (error "Unable to play video. Please install `yt-dlp' and `mpv'"))) (defun yeetube-mpv-process (command) "Start yeetube process for shell COMMAND." |