Pierre Neidhardt <[email protected]> writes:

> Yoni Rabkin <[email protected]> writes:
>> Unfortunately, there is no easy way to do this.
>
> What about
>
>     ("y" . ,(or (emms-track-get 'info-year) (emms-GET-YEAR-FROM-DATE 
> (emms-track-get track 'info-date)))
>
> Where the upcase function might have to be implemented, although I got
> one on this mailing list recently.

Yeah, I think that is a good way, although I would fall back on info-year
and prefer info-date, if present (it is presumably more detailed).  The
order could also be custom preference.

In any case, it might be preferable to move this to a separate function
‘emms-get-year’, say, and call that.  It might look cleaner.

Thank Pierre and Yoni!

Rasmus

-- 
You people at the NSA are becoming my new best friends!

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

Reply via email to