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

MetadataParser: Having no artist at all is an error condition

This means the creation of an artist entity failed.
findOrCreateArtist will return unknown artist if no artist tag was present
parent 175cd2e9
......@@ -192,6 +192,8 @@ bool MetadataParser::parseAudioFile( parser::Task& task )
auto genre = handleGenre( task );
auto artists = findOrCreateArtist( task );
if ( artists.first == nullptr && artists.second == nullptr )
return false;
auto album = findAlbum( task, artists.first, artists.second );
auto t = m_ml->getConn()->newTransaction();
if ( album == 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