mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 09:19:41 +01:00
Support year in external resolvers too
This commit is contained in:
parent
6945b503cf
commit
bf0b58fe60
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user