Dont treat albums that have artists such as 'Abc' and 'Abc with xyz' as multiple artist albums.
This commit is contained in:
committed by
craig.p.drummond
parent
cb8d717630
commit
c4a2915308
@@ -78,6 +78,8 @@
|
||||
separator. When reading back entry, revert this process.
|
||||
43. Fix tag editing, track re-organisation, and playback of non-MPD files via
|
||||
HTTP server on windows.
|
||||
44. Dont treat albums that have artists such as 'Abc' and 'Abc with xyz' as
|
||||
multiple artist albums.
|
||||
|
||||
1.1.3
|
||||
-----
|
||||
|
||||
@@ -424,11 +424,17 @@ bool MusicLibraryItemAlbum::detectIfIsMultipleArtists()
|
||||
}
|
||||
|
||||
if (Song::Standard==m_type) {
|
||||
QString a;
|
||||
QString artist;
|
||||
QString albumArtist;
|
||||
foreach (MusicLibraryItem *track, m_childItems) {
|
||||
if (a.isEmpty()) {
|
||||
a=static_cast<MusicLibraryItemSong*>(track)->song().artist;
|
||||
} else if (static_cast<MusicLibraryItemSong*>(track)->song().artist!=a) {
|
||||
if (artist.isEmpty()) {
|
||||
artist=static_cast<MusicLibraryItemSong*>(track)->song().artist;
|
||||
albumArtist=static_cast<MusicLibraryItemSong*>(track)->song().albumArtist();
|
||||
if (artist==albumArtist) {
|
||||
albumArtist=QString();
|
||||
}
|
||||
} else if (static_cast<MusicLibraryItemSong*>(track)->song().artist!=artist &&
|
||||
(albumArtist.isEmpty() || !static_cast<MusicLibraryItemSong*>(track)->song().artist.startsWith(albumArtist))) {
|
||||
m_type=Song::MultipleArtists;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user