add option added + a few fixes regarding tracks with unknown length

This commit is contained in:
unK
2008-08-24 20:06:36 +02:00
parent 6ca6d47104
commit 2d6f0faf7c
8 changed files with 64 additions and 15 deletions

View File

@@ -153,6 +153,11 @@ string TotalPlaylistLength()
for (SongList::const_iterator it = vPlaylist.begin(); it != vPlaylist.end(); it++)
length += (*it)->GetTotalLength();
if (!length)
return result;
result += ", length: ";
int years = length/YEAR;
if (years)
{