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:
@@ -257,11 +257,14 @@ CDDBServer::Read(QueryResponseData* diskData, ReadResponseData* readResponse)
|
|||||||
trackData->trackNumber = track;
|
trackData->trackNumber = track;
|
||||||
|
|
||||||
int32 pos = line.FindFirst(" / " );
|
int32 pos = line.FindFirst(" / " );
|
||||||
if (pos != B_ERROR) {
|
if (pos != B_ERROR && diskData->artist.ICompare("Various") == 0) {
|
||||||
// We have track specific artist information.
|
// Disk is set to have a compilation artist and
|
||||||
|
// we have track specific artist information.
|
||||||
BString artist;
|
BString artist;
|
||||||
line.MoveInto(artist, 0, pos);
|
line.MoveInto(artist, 0, pos);
|
||||||
|
// Move artist information from line to artist.
|
||||||
line.Remove(0, 3);
|
line.Remove(0, 3);
|
||||||
|
// Remove " / " from line.
|
||||||
trackData->artist = artist;
|
trackData->artist = artist;
|
||||||
} else {
|
} else {
|
||||||
trackData->artist = diskData->artist;
|
trackData->artist = diskData->artist;
|
||||||
|
|||||||
Reference in New Issue
Block a user