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

VLCMetadataService: Don't try to assign an empty artwork to an artist

parent a25c27c1
......@@ -461,7 +461,8 @@ bool VLCMetadataService::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 && album != nullptr )
if ( albumArtist != nullptr && albumArtist->artworkMrl().empty() == true &&
album != nullptr && album->artworkMrl().empty() == false )
albumArtist->setArtworkMrl( album->artworkMrl() );
if ( albumArtist != nullptr )
......
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