diff options
author | Kalle Wallin <kaw@linux.se> | 2005-06-05 21:34:21 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2005-06-05 21:34:21 +0000 |
commit | 16781807eabac2449c096f7cbca91bc4bc69a52c (patch) | |
tree | e93b5ba5763efadf0ca02d729f74e9a3b2d07d59 | |
parent | baa0bfaa9a186b657f0d3cde8f92d65e5b89be98 (diff) | |
download | mpd-16781807eabac2449c096f7cbca91bc4bc69a52c.tar.gz mpd-16781807eabac2449c096f7cbca91bc4bc69a52c.tar.xz mpd-16781807eabac2449c096f7cbca91bc4bc69a52c.zip |
Added support for %date% and %genre% - from qball
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3319 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/strfsong.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/strfsong.c b/src/strfsong.c index 4c2bf38d2..3f60875ea 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -174,6 +174,10 @@ _strfsong(gchar *s, temp = song->track ? utf8_to_locale(song->track) : NULL; else if (strncmp("%name%", p, n) == 0) temp = song->name ? utf8_to_locale(song->name) : NULL; + else if (strncmp("%date%", p, n) == 0) + temp = song->date ? utf8_to_locale(song->date) : NULL; + else if (strncmp("%genre%", p, n) == 0) + temp = song->genre ? utf8_to_locale(song->genre) : NULL; else if (strncmp("%shortfile%", p, n) == 0) { if( strstr(song->file, "://") ) |