Decrease album cover score if artist doesn't match and cover isn't requested using album title

This commit is contained in:
Jonas Kvinge 2020-08-02 04:34:15 +02:00
parent b3be7d1c6f
commit 9967eae7bb

View File

@ -152,6 +152,10 @@ void AlbumCoverFetcherSearch::ProviderSearchResults(CoverProvider *provider, con
results_copy[i].score -= 1.5;
}
if (request_album.isEmpty() && result_artist != request_artist) {
results_copy[i].score -= 1;
}
// Decrease score if the search was based on artist and song title, and the resulting album is a compilation or live album.
// This is done since we can't match the album titles, and we want to prevent compilation or live albums from being picked before studio albums for streams.
if (request_album.isEmpty() && (