From 9967eae7bb86983d8fea01b93c659ffe197ebc96 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 2 Aug 2020 04:34:15 +0200 Subject: [PATCH] Decrease album cover score if artist doesn't match and cover isn't requested using album title --- src/covermanager/albumcoverfetchersearch.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/covermanager/albumcoverfetchersearch.cpp b/src/covermanager/albumcoverfetchersearch.cpp index a527f5c7f..601431cb2 100644 --- a/src/covermanager/albumcoverfetchersearch.cpp +++ b/src/covermanager/albumcoverfetchersearch.cpp @@ -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() && (