Uses effective fields for album hashing and comparison (#5653)

This commit is contained in:
Jan Paul Erkelens 2017-03-08 07:22:50 -05:00 committed by John Maguire
parent 62bc647cbc
commit 0215707810
1 changed files with 4 additions and 3 deletions

View File

@ -1127,12 +1127,13 @@ bool Song::IsOnSameAlbum(const Song& other) const {
if (is_compilation() && album() == other.album()) return true;
return album() == other.album() && artist() == other.artist();
return effective_album() == other.effective_album() &&
effective_albumartist() == other.effective_albumartist();
}
QString Song::AlbumKey() const {
return QString("%1|%2|%3").arg(is_compilation() ? "_compilation" : artist(),
has_cue() ? cue_path() : "", album());
return QString("%1|%2|%3").arg(is_compilation() ? "_compilation" : effective_albumartist(),
has_cue() ? cue_path() : "", effective_album());
}
void Song::ToXesam(QVariantMap* map) const {