Petteri Hintsanen <[email protected]> writes:

> 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)"))))

I've added and adapted version of the function to Emms and made it the
default.
I've documented the option in the manual.

Commit coming soon.

-- 
Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to