Check if disk has compilation artist

... before looking for track specific artist information. Fixes #9813

Signed-off-by: John Scipione <[email protected]>
This commit is contained in:
John Scipione
2013-06-12 19:02:00 -04:00
parent 1f0b41ba7f
commit 7a66a8375d
+5 -2
View File
@@ -257,11 +257,14 @@ CDDBServer::Read(QueryResponseData* diskData, ReadResponseData* readResponse)
trackData->trackNumber = track;
int32 pos = line.FindFirst(" / " );
if (pos != B_ERROR) {
// We have track specific artist information.
if (pos != B_ERROR && diskData->artist.ICompare("Various") == 0) {
// Disk is set to have a compilation artist and
// we have track specific artist information.
BString artist;
line.MoveInto(artist, 0, pos);
// Move artist information from line to artist.
line.Remove(0, 3);
// Remove " / " from line.
trackData->artist = artist;
} else {
trackData->artist = diskData->artist;