Skip to content

Commit

Permalink
fix compilation tag not being set for albums
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Jul 8, 2012
1 parent 2a2f925 commit 0dfbe0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/music/infoscanner/MusicInfoScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ void CMusicInfoScanner::CategoriseAlbums(VECSONGS &songsToCheck, VECALBUMS &albu
3. no album artist is specified
4. we have at least two different primary artists
*/
if (compilation && artists.size() > 1)
if (artists.size() == 1)
compilation = false;
if (compilation)
{
artists.clear();
std::string various = g_localizeStrings.Get(340); // Various Artists
Expand Down Expand Up @@ -700,6 +702,7 @@ void CMusicInfoScanner::CategoriseAlbums(VECSONGS &songsToCheck, VECALBUMS &albu
CAlbum album;
album.strAlbum = i->first;
album.artist = common;
album.bCompilation = compilation;
for (vector<CSong *>::iterator k = artistSongs.begin(); k != artistSongs.end(); ++k)
{
if ((*k)->albumArtist.empty())
Expand Down

0 comments on commit 0dfbe0e

Please sign in to comment.