Commit ca87c37c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MetadataParser: Don't assign artwork to unknown/various artists

parent 786f11d3
......@@ -700,7 +700,11 @@ bool MetadataParser::link( Media& media, std::shared_ptr<Album> album,
// If we have an albumArtist (meaning the track was properly tagged, we
// can assume this artist is a correct match. We can use the thumbnail from
// the current album for the albumArtist, if none has been set before.
if ( albumArtist != nullptr && albumArtist->artworkMrl().empty() == true &&
// Although we don't want to do this for unknown/various artists, as the
// thumbnail wouldn't reflect those "special" artists
if ( albumArtist != nullptr && albumArtist->id() != UnknownArtistID &&
albumArtist->id() != VariousArtistID &&
albumArtist->artworkMrl().empty() == true &&
album != nullptr && album->artworkMrl().empty() == false )
albumArtist->setArtworkMrl( album->artworkMrl() );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment