fix compilation --without-taglib

This commit is contained in:
Andrzej Rybczak
2012-08-29 09:07:20 +02:00
parent ddeec3aea0
commit 4cb0e2232a
22 changed files with 609 additions and 247 deletions

View File

@@ -136,14 +136,11 @@ std::string Song::getTrack(unsigned idx) const
std::string Song::getTrackNumber(unsigned idx) const
{
assert(pimpl);
std::string track = pimpl->getTag(MPD_TAG_TRACK, idx);
std::string track = getTrack(idx);
size_t slash = track.find('/');
if (slash != std::string::npos)
track.resize(slash);
if (track.length() == 1 && track[0] != '0')
return "0"+track;
else
return track;
return track;
}
std::string Song::getDate(unsigned idx) const