I missed one. Heres another patch. Its tiny. I think thats all. Everything seems to be working as expected.
Erica
From 9c38236d6a267e84e7721e9370c14fe4d03ec50a Mon Sep 17 00:00:00 2001 From: ericalinag <[email protected]> Date: Thu, 9 Nov 2023 22:11:59 -0500 Subject: [PATCH] Add a format specifier for genre. --- doc/emms.texinfo | 4 +++- emms-browser.el | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/emms.texinfo b/doc/emms.texinfo index 5e997c2..d869eef 100644 --- a/doc/emms.texinfo +++ b/doc/emms.texinfo @@ -2180,6 +2180,8 @@ The format specifiers available include: @item %T the track number @item +%g the genre of the track. +@item %cS a small album cover @item %cM a medium album cover @@ -2194,7 +2196,7 @@ data from the first track. The faces used to display the various fields are also customizable. They are in the format emms-browser-<type>-face, where type is one of -"year/genre", "artist", "album" or "track". Note that faces lack the +"year/genre", "albumartist", "artist", "album" or "track". Note that faces lack the initial "info-" part. For example, to change the artist face, type M-x @command{customize-face} @command{emms-browser-artist-face}. diff --git a/emms-browser.el b/emms-browser.el index 374a35f..e00ad84 100644 --- a/emms-browser.el +++ b/emms-browser.el @@ -182,8 +182,10 @@ ;; %y the album year ;; %A the album name ;; %a the artist name of the track +;; %o the album artist ;; %C the composer name of the track ;; %p the performer name of the track +;; %g the genre of the track. ;; %t the title of the track ;; %T the track number ;; %cS a small album cover @@ -1814,6 +1816,7 @@ If > album level, most of the track data will not make sense." ("C" . ,(emms-track-get track 'info-composer)) ("p" . ,(emms-track-get track 'info-performer)) ("t" . ,(emms-track-get track 'info-title)) + ("g" . ,(emms-track-get track 'info-genre)) ("D" . ,(emms-browser-disc-number track)) ("T" . ,(emms-browser-track-number track)) ("d" . ,(emms-browser-track-duration track)))) -- 2.42.0
