Add a function to run the streaming program if the sent command is successful.
This commit is contained in:
parent
dd9c4decfb
commit
e2cc39a1cc
1 changed files with 5 additions and 0 deletions
5
empc.el
5
empc.el
|
|
@ -158,6 +158,11 @@ Return nil if the line should be ignored."
|
|||
delay
|
||||
t)))
|
||||
|
||||
(defun empc-stream-start (plist)
|
||||
(when (and empc-stream-url empc-stream-program
|
||||
(eq (plist-get plist 'error) nil))
|
||||
(start-process "empc-stream" nil empc-stream-program empc-stream-url)))
|
||||
|
||||
(defun empc-update-status (&optional closure)
|
||||
"Retreive the current status and update EMPC-CURRENT-STATUS."
|
||||
(empc-send "status" 'empc-response-parse-status closure))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue