diff options
author | Thanos Apollo <[email protected]> | 2023-08-17 06:11:42 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-17 06:11:42 +0300 |
commit | bc30bb027d12c37d67f986860b6572082d2f05f1 (patch) | |
tree | 39bc8c599fc690115cefec953838665c6bf4cbae /yeetube.el | |
parent | e7492d4f91cf11f5c74ba4faedab1d6bd6151520 (diff) |
Add error messages when yeetube-player not on PATH
Diffstat (limited to 'yeetube.el')
-rw-r--r-- | yeetube.el | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -155,6 +155,9 @@ It's recommended you keep it as the default value." (defun yeetube-play-url (url) "Open URL using yeetube-player." + (let ((player (car (split-string yeetube-player)))) + (unless (executable-find player) + (error (format "%s not found." player)))) (when (string-prefix-p "http" url) (setq yeetube-last-played url) (if (string-match "mpv" yeetube-player) |