aboutsummaryrefslogtreecommitdiffstats
path: root/yeetube-mpv.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-11 16:22:25 +0300
committerThanos Apollo <[email protected]>2024-04-11 16:22:25 +0300
commit447005142a254516ad51f85efc023e2b9dc0e92c (patch)
treeddd260c4c257379848ebd4934953b39bdcaac864 /yeetube-mpv.el
parentc443a9146b70f0b9697e2ee68356ac79a19bd81e (diff)
[fix] yeetube-play: Use 2nd argument only when yeetube-mpv-modeline
- Pass information for yeetube-mpv-modeline as a second argument only when it's enabled. This way it should not break current users configuration with different media players. We could write this differently to hardcode yeetube-mpv-play, but I would like to make it possible for others to make 3rd party media players to be used with yeetube & yeetube-mpv-modeline.
Diffstat (limited to 'yeetube-mpv.el')
-rw-r--r--yeetube-mpv.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/yeetube-mpv.el b/yeetube-mpv.el
index 4bab5e9..2e8325a 100644
--- a/yeetube-mpv.el
+++ b/yeetube-mpv.el
@@ -93,6 +93,8 @@ Accepted values include: 1080, 720, 480, 360, 240, 144")
(defun yeetube-mpv-play (input &optional info)
"Start yeetube process to play INPUT using mpv.
+INFO: Information to display with `yeetube-mpv-modeline-mode'
+
This function is not specific to just playing urls. Feel free to use
to play local files."
(let ((yeetube-mpv-path (executable-find "mpv")))
@@ -110,7 +112,10 @@ to play local files."
(setf yeetube-mpv-currently-playing (format "[%s]" info))))
(define-minor-mode yeetube-mpv-modeline-mode
- "Minor mode for showing currently playing information on the modeline."
+ "Minor mode for showing currently playing information on the modeline.
+
+To use this mode, you should set `yeetube-play-function' to
+`yeetube-mpv-play'."
:global t
:group 'yeetube
:lighter nil