diff options
author | Thanos Apollo <[email protected]> | 2023-08-18 16:13:19 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-18 16:13:19 +0300 |
commit | f640e7f2ced63fca7f01eb7a9f8a2fa6ad62db9c (patch) | |
tree | b345d774fcd2816ddb11613e273c82a7aeeb9123 | |
parent | c160d22eda7cca72ed66ab62abfb8be044cfc308 (diff) |
remove old send-socket-command
-rw-r--r-- | yeetube.el | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -214,8 +214,6 @@ Example Usage: (when clear-saved (setq yeetube-saved-videos nil)))) -(defun yeetube-disable-video-mpv () - "Toggle video on/off for mpv player." (defun yeetube--mpv-play (url) "Use mpv to play URL." (let ((mpv (executable-find "mpv")) @@ -244,19 +242,6 @@ Example Usage: (concat mpv no-video socket))) (message (format "Yeetube Player: %s" yeetube-player)))) -(defun yeetube-send-command-to-socket (socket json-data) - "Send command with JSON-DATA to SOCKET." - (let* ((proc (make-network-process :name "yeet-socket" - :family 'local - :service socket))) - (process-send-string proc (concat json-data "\n")) - (accept-process-output proc))) - -(defun yeetube--send-command (property value) - "Send command with PROPERTY and VALUE as json-data to mpv socket." - (let ((json-data (format "{ \"command\": [\"%s\", \"%s\"]}" property value))) - (yeetube-send-command-to-socket yeetube-mpv-socket json-data))) - (defun yeetube-toggle-pause-mpv () "Toggle play/pause mpv." (interactive) |