diff options
author | Thanos Apollo <[email protected]> | 2023-08-18 16:13:50 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-18 16:13:50 +0300 |
commit | e19ece6e847794a747e59e1e2e8e9af020b713db (patch) | |
tree | 0b1eb41057e5df76e98b85cb2791b4ad74f14f86 | |
parent | f640e7f2ced63fca7f01eb7a9f8a2fa6ad62db9c (diff) |
Rewrite yeetube-mpv-toggle-pause
-rw-r--r-- | yeetube.el | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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." |