...or display it only if it's '%', otherwise discard it.
This commit is contained in:
@@ -369,8 +369,9 @@ std::string MPD::Song::ParseFormat(std::string::const_iterator &it) const
|
||||
case 't':
|
||||
get = &MPD::Song::GetTitle;
|
||||
break;
|
||||
case '%':
|
||||
result += *it; // no break here
|
||||
default:
|
||||
result += *it;
|
||||
get = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user