1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02:00

Fix single artist case

This commit is contained in:
Leo Franchi
2011-01-28 23:01:01 -05:00
parent 20a0b734f0
commit 421e64f2f9

View File

@@ -310,7 +310,7 @@ EchonestGenerator::sentenceSummary()
center = summary.remove( "~" ); center = summary.remove( "~" );
if( artists.size() == 2 ) // special case for 2, no comma. ( X and Y ) if( artists.size() == 2 ) // special case for 2, no comma. ( X and Y )
suffix = " and "; suffix = " and ";
else else if( artists.size() > 2 )
suffix = ", "; suffix = ", ";
} else { } else {
center = summary.mid( summary.indexOf( "~" ) + 1 ); center = summary.mid( summary.indexOf( "~" ) + 1 );