When determining the 'basic' artist of a track, if albumartist is set and artist is not, then use albumartist.
BUG: 431
This commit is contained in:
committed by
craig.p.drummond
parent
3e22a0ade3
commit
8c820c60fb
@@ -37,6 +37,8 @@
|
||||
Cantata will only save artist images, and backdrops, in MPD folder if the
|
||||
folder structure is (e.g.) Artist/Album/Track.mp3
|
||||
3. Use case-insensitive sort of folder view items when adding to playqueue.
|
||||
4. When determining the 'basic' artist of a track, if albumartist is set and
|
||||
artist is not, then use albumartist.
|
||||
|
||||
1.3.1
|
||||
-----
|
||||
|
||||
@@ -531,7 +531,7 @@ bool Song::capitalise()
|
||||
|
||||
QString Song::basicArtist() const
|
||||
{
|
||||
if (!albumartist.isEmpty() && !artist.isEmpty() && albumartist.length()<artist.length() && artist.startsWith(albumartist)) {
|
||||
if (!albumartist.isEmpty() && (artist.isEmpty() || (albumartist.length()<artist.length() && artist.startsWith(albumartist)))) {
|
||||
return albumartist;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user