...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':
|
case 't':
|
||||||
get = &MPD::Song::GetTitle;
|
get = &MPD::Song::GetTitle;
|
||||||
break;
|
break;
|
||||||
|
case '%':
|
||||||
|
result += *it; // no break here
|
||||||
default:
|
default:
|
||||||
result += *it;
|
|
||||||
get = 0;
|
get = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user