~amk/subsonic.el

68ff526021e382b4e385b219d7de2804ae2cad6f — Alex McGrath 4 months ago b017f0b
Default 'year' to 0 if it doesnt exist
1 files changed, 1 insertions(+), 1 deletions(-)

M subsonic.el
M subsonic.el => subsonic.el +1 -1
@@ 361,7 361,7 @@ subsonic, and ensure subsonic-host is set correctly")))
  (let* ((albums (subsonic-recursive-assoc data '("subsonic-response" "artist" "album")))
         (result (mapcar (lambda (album)
                           (list (assoc-default "id" album)
                                 (vector (format "%d" (assoc-default "year" album))
                                 (vector (format "%d" (or (assoc-default "year" album) 0))
                                         (assoc-default "name" album)
                                         "")))
                         albums)))