On 24.10.2017 01:48, Pierre Neidhardt wrote:
I haven't looked into this properly, sorry about that, so I'll just drop
a quick question: is it possible to group by album-artist in the browser
view?
I use this
(defun ph-emms-browser-get-track-field (track type)
"Return TYPE from TRACK.
This function uses 'info-albumartistsort, 'info-albumartist,
'info-artistsort, 'info-originalyear, 'info-originaldate and
'info-date symbols, if available for TRACK."
(cond ((eq type 'info-artist)
(or (emms-track-get track 'info-albumartistsort)
(emms-track-get track 'info-albumartist)
(emms-track-get track 'info-artistsort)
(emms-track-get track 'info-artist "(unknown)")))
((eq type 'info-year)
(let ((date (or (emms-track-get track 'info-originaldate)
(emms-track-get track 'info-originalyear)
(emms-track-get track 'info-date)
(emms-track-get track 'info-year "(unknown)"))))
(ph-extract-year-from-date date)))
(t (emms-track-get track type "(unknown)"))))
(setq emms-browser-get-track-field-function
#'ph-emms-browser-get-track-field)
Remove info-year cond if you don't want to use originalyear/originaldates.
HTH, Petteri
_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help