summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-03 05:54:52 +0300
committerThanos Apollo <[email protected]>2023-10-03 05:54:52 +0300
commit80bff4a031206443716145eeaab71192dad66378 (patch)
treebb8f46c0dbf27cc65f283eede8e9abecb63f3d66
parent6db62b303d2ff45a525bb0aa9948401cda80e58e (diff)
yeetube-mpv: make mpv executable as a variable
-rw-r--r--yeetube-mpv.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index e83c46d..0dd72a9 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -35,6 +35,9 @@
:safe #'booleanp
:group 'yeetube)
+(defvar yeetube-mpv-path (executable-find "mpv")
+ "Path for mpv executable.")
+
(defun yeetube-mpv-process (command)
"Start yeetube process for shell COMMAND."
(let ((yeetube-mpv-process "yeetube"))
@@ -50,8 +53,8 @@
"Start yeetube process to play URL using mpv."
(yeetube-mpv-process
(if yeetube-mpv-disable-video
- (format "%s --no-video '%s'" (executable-find "mpv") url)
- (format "%s '%s'" (executable-find "mpv") url)))
+ (format "%s --no-video '%s'" yeetube-mpv-path url)
+ (format "%s '%s'" yeetube-mpv-path url)))
(message "yeetube: starting mpv process"))
(defun yeetube-mpv-toggle-no-video-flag ()