mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Support year in external resolvers too
This commit is contained in:
@@ -165,6 +165,12 @@ ScriptResolver::handleMsg( const QByteArray& msg )
|
||||
rp->setMimetype( TomahawkUtils::extensionToMimetype( m.value( "extension" ).toString() ) );
|
||||
Q_ASSERT( !rp->mimetype().isEmpty() );
|
||||
}
|
||||
if ( m.contains( "year" ) )
|
||||
{
|
||||
QVariantMap attr;
|
||||
attr[ "releaseyear" ] = m.value( "year" );
|
||||
rp->setAttributes( attr );
|
||||
}
|
||||
|
||||
results << rp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user