Playlist number starts at 1

This commit is contained in:
Renaud Casenave-Péré 2011-08-03 14:03:12 +09:00
parent b17f0abbab
commit 1dabcb7d52

View file

@ -89,7 +89,7 @@ return at the end of a request.")
(defun empc-echo-song (song)
"Notify SONG."
(empc-echo-notify (concat "[" (int-to-string (plist-get song :pos)) "/" (int-to-string (plist-get empc-current-status :playlistlength)) "] "
(empc-echo-notify (concat "[" (int-to-string (+ (plist-get song :pos) 1)) "/" (int-to-string (plist-get empc-current-status :playlistlength)) "] "
(plist-get song :artist) " - " (plist-get song :title))))
(defun empc-make-modeline ()