1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 12:52:30 +02:00

Check whether albumartist is blank before trying to add it.

This commit is contained in:
hansschmucker
2014-11-13 15:30:43 +01:00
committed by Christian Muehlhaeuser
parent f7888aab02
commit aaacecbb71

View File

@@ -131,6 +131,11 @@ DatabaseCommand_AddFiles::exec( DatabaseImpl* dbi )
v = m; v = m;
artistid = dbi->artistId( artist, true ); artistid = dbi->artistId( artist, true );
// add the album artist to the artist database
albumartistid = dbi->artistId( albumartist, true );
if ( !artist.trimmed().isEmpty() )
artistid = dbi->artistId( artist, true );
if ( artistid < 1 ) if ( artistid < 1 )
continue; continue;
trackid = dbi->trackId( artistid, track, true ); trackid = dbi->trackId( artistid, track, true );