mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 03:41:27 +02:00
Ensure that we have artist and track name
This commit is contained in:
@@ -444,6 +444,12 @@ MusicScanner::readTags( const QFileInfo& fi, libvlc_instance_t* vlcInstance )
|
||||
// m["composer"] = tag->composer();
|
||||
// m["discnumber"] = tag->discNumber();
|
||||
|
||||
if ( m["artist"].toString().isEmpty() || m["track"].toString().isEmpty() )
|
||||
{
|
||||
// Artist and track name are required.
|
||||
return QVariantMap();
|
||||
}
|
||||
|
||||
libvlc_media_release( media );
|
||||
#else
|
||||
Q_UNUSED( vlcInstance );
|
||||
|
Reference in New Issue
Block a user