format: shorten date by simple truncation
This commit is contained in:
@@ -124,8 +124,8 @@ struct Printer: boost::static_visitor<Result>
|
|||||||
{
|
{
|
||||||
if (st.delimiter() > 0)
|
if (st.delimiter() > 0)
|
||||||
{
|
{
|
||||||
// shorten length by chopping off the tail
|
// shorten date/length by simple truncation
|
||||||
if (st.function() == &MPD::Song::getLength)
|
if (st.function() == &MPD::Song::getDate || st.function() == &MPD::Song::getLength)
|
||||||
tags.resize(st.delimiter());
|
tags.resize(st.delimiter());
|
||||||
else
|
else
|
||||||
tags = wideShorten(tags, st.delimiter());
|
tags = wideShorten(tags, st.delimiter());
|
||||||
|
|||||||
Reference in New Issue
Block a user