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

MetadataParser: Don't use attachment artwork for artist/albums

parent 7dda51bd
......@@ -222,7 +222,13 @@ bool MetadataParser::parseAudioFile( parser::Task& task )
auto artworkMrl = task.vlcMedia.meta( libvlc_meta_ArtworkURL );
if ( artworkMrl.empty() == false )
{
task.media->setThumbnail( artworkMrl );
// Don't use an attachment as default artwork for album/artists
if ( utils::file::schemeIs( "attachment", artworkMrl ) )
artworkMrl.clear();
}
auto genre = handleGenre( task );
auto artists = findOrCreateArtist( task );
......
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