Use effective album artist for Repeat Album logic

When there is album artist information available for a track, the user would
probably expect that "Repeat Album" should cycle through all songs with the same
album artist and album title, not only all songs with the same artist and album
title.
This commit is contained in:
Keshav Kini 2020-07-19 01:57:28 -07:00 committed by John Maguire
parent ee72793b5f
commit 68d375c43c
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ int Playlist::NextVirtualIndex(int i, bool ignore_repeat_track) const {
}
Song this_song = item_at(virtual_items_[j])->Metadata();
if (((last_song.is_compilation() && this_song.is_compilation()) ||
last_song.artist() == this_song.artist()) &&
last_song.effective_albumartist() == this_song.effective_albumartist()) &&
last_song.album() == this_song.album() &&
FilterContainsVirtualIndex(j)) {
return j; // Found one