summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-18 16:13:50 +0300
committerThanos Apollo <[email protected]>2023-08-18 16:13:50 +0300
commite19ece6e847794a747e59e1e2e8e9af020b713db (patch)
tree0b1eb41057e5df76e98b85cb2791b4ad74f14f86
parentf640e7f2ced63fca7f01eb7a9f8a2fa6ad62db9c (diff)
Rewrite yeetube-mpv-toggle-pause
-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."