summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3615326)
raw | patch | inline | side by side (parent: 3615326)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Fri, 10 Aug 2012 11:21:37 +0000 (13:21 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Fri, 10 Aug 2012 11:21:37 +0000 (13:21 +0200) |
doc/ncmpc.1 | patch | blob | history | |
src/strfsong.c | patch | blob | history |
diff --git a/doc/ncmpc.1 b/doc/ncmpc.1
index b6eef5e91f84bf6ba28c563744f2f1f07df0c2d9..28f88f58b6e73800edf69161b7672947ff722f3a 100644 (file)
--- a/doc/ncmpc.1
+++ b/doc/ncmpc.1
ncmpc is running. To edit key bindings press 'K' and use the key editor in ncmpc.
.SH "SONG FORMAT"
Format of song display for status and the list window.
-The metadata delimiters are: %artist%, %title%, %album%, %shortalbum%, %track%, %genre%, %name%, %time%, %date%, %file%, %shortfile%.
+The metadata delimiters are: %artist%, %albumartist%, %composer%, %performer%, %title%, %album%, %shortalbum%, %track%, %genre%, %name%, %time%, %date%, %file%, %shortfile%.
The [] operators are used to group output such that if none of the metadata delimiters between '[' and ']' are matched, then none of the characters between '[' and ']' are output; literal text is always output. '&' and '|' are logical operators for AND and OR. '#' is used to escape characters.
diff --git a/src/strfsong.c b/src/strfsong.c
index 35086e85de41afe083d2f43e71f58ebd7453f7a9..48567675d964882e41df3b6b8357da684ff4f2da 100644 (file)
--- a/src/strfsong.c
+++ b/src/strfsong.c
temp = utf8_to_locale(mpd_song_get_uri(song));
else if (strncmp("%artist%", p, n) == 0)
temp = song_tag_locale(song, MPD_TAG_ARTIST);
+ else if (strncmp("%albumartist", p, n) == 0)
+ temp = song_tag_locale(song, MPD_TAG_ALBUM_ARTIST);
+ else if (strncmp("%composer%", p, n) == 0)
+ temp = song_tag_locale(song, MPD_TAG_COMPOSER);
+ else if (strncmp("%performer%", p, n) == 0)
+ temp = song_tag_locale(song, MPD_TAG_PERFORMER);
else if (strncmp("%title%", p, n) == 0)
temp = song_tag_locale(song, MPD_TAG_TITLE);
else if (strncmp("%album%", p, n) == 0)