aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-browser.el
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2017-11-26 18:35:44 +0100
committerPierre Neidhardt <ambrevar@gmail.com>2017-11-27 08:21:06 +0100
commit0960515e644015c6d85549fa3bef3d67c0ee7116 (patch)
treed017e4f5677f9cc5ff0b63eafeb9d3ebbd14584c /lisp/emms-browser.el
parentbabc32f7079b1a5925b60fa5c9874c9ccbb5c414 (diff)
lisp/emms-browser.el: Extract year from info-date or fallback on info-year
Diffstat (limited to 'lisp/emms-browser.el')
-rw-r--r--lisp/emms-browser.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emms-browser.el b/lisp/emms-browser.el
index 414086c..6b6ce28 100644
--- a/lisp/emms-browser.el
+++ b/lisp/emms-browser.el
@@ -812,7 +812,7 @@ return an empty string."
(defun emms-browser-year-number (track)
"Return a string representation of a track's year.
This will be in the form '(1998) '."
- (let ((year (emms-track-get track 'info-year)))
+ (let ((year (emms-track-get-year track)))
(if (or (not (stringp year)) (string= year "0"))
""
(concat
@@ -1719,7 +1719,7 @@ If > album level, most of the track data will not make sense."
(format-choices
`(("i" . ,indent)
("n" . ,name)
- ("y" . ,(emms-track-get track 'info-year))
+ ("y" . ,(emms-track-get-year track))
("A" . ,(emms-track-get track 'info-album))
("a" . ,(emms-track-get track 'info-artist))
("C" . ,(emms-track-get track 'info-composer))