X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fstrfsong.c;h=b64c350ba6dace76d83b8c70f0dd49d591b1eefc;hb=b3e29d017a77d1cd34bfde94bd7182422e6d695c;hp=5107ba0bd2606f9a8cc28fecf9159701b0b3988a;hpb=d4007f2eef7bf32498ad4233d8115c9e2c48b2c1;p=ncmpc.git diff --git a/src/strfsong.c b/src/strfsong.c index 5107ba0..b64c350 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -1,5 +1,5 @@ /* ncmpc (Ncurses MPD Client) - * (c) 2004-2010 The Music Player Daemon Project + * (c) 2004-2017 The Music Player Daemon Project * Project homepage: http://musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -19,7 +19,7 @@ #include "strfsong.h" #include "charset.h" -#include "utils.h" +#include "time_format.h" #include @@ -232,6 +232,8 @@ _strfsong(gchar *s, } else if (strncmp("%track%", p, n) == 0) temp = song_tag_locale(song, MPD_TAG_TRACK); + else if (strncmp("%disc%", p, n) == 0) + temp = song_tag_locale(song, MPD_TAG_DISC); else if (strncmp("%name%", p, n) == 0) temp = song_tag_locale(song, MPD_TAG_NAME); else if (strncmp("%date%", p, n) == 0)