Fix `empc-response-get-playlist' when the playlist is empty
This commit is contained in:
parent
3603fe6f01
commit
87590d529e
1 changed files with 2 additions and 1 deletions
3
empc.el
3
empc.el
|
|
@ -155,7 +155,8 @@ form '('error (error-code . error-message))."
|
|||
((member field '(:time :track :date :pos :id))
|
||||
(setq song (cons field (cons (string-to-int (cdr cell)) song))))
|
||||
(t (setq song (cons field (cons (cdr cell) song)))))))
|
||||
(aset empc-current-playlist index song)))
|
||||
(when (and song (>= index 0))
|
||||
(aset empc-current-playlist index song))))
|
||||
|
||||
(defun empc-response-idle (data)
|
||||
"React from idle interruption."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue