summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index 2336c99..e2f669f 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -242,12 +242,11 @@ Example Usage:
(concat mpv no-video socket)))
(message (format "Yeetube Player: %s" yeetube-player))))
-(defun yeetube-toggle-pause-mpv ()
+(defun yeetube-mpv-toggle-pause ()
"Toggle play/pause mpv."
(interactive)
- (unless (string-match "mpv" yeetube-player)
- (error "Not using mpv as yeetube-player"))
- (yeetube--send-command 'cycle 'pause))
+ (process-send-string "yeetube" "p")
+ (message "yeetube: toggle pause"))
(defun yeetube-toggle-video-mpv ()
"Toggle video on/off mpv."