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:
craig.p.drummond
2014-03-02 19:47:39 +00:00
committed by craig.p.drummond
parent 3e22a0ade3
commit 8c820c60fb
2 changed files with 3 additions and 1 deletions

View File

@@ -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
-----

View File

@@ -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;
}