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

MetadataParser: Remove bogus assertion.

We might have created the album and be interrupted during a previous
parsing
parent b1935255
......@@ -192,7 +192,13 @@ std::shared_ptr<Album> MetadataParser::findAlbum( parser::Task& task, Artist* al
continue;
}
const auto tracks = a->cachedTracks();
assert( tracks.size() > 0 );
// If there is no tracks to compare with, we just have to hope this will be the only valid
// album match
if ( tracks.size() == 0 )
{
++it;
continue;
}
auto multiDisc = false;
for ( auto& t : tracks )
......
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