mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
* Support year parameter in QtScriptResolver.
This commit is contained in:
parent
3c936414fd
commit
3414f32e9b
@ -111,6 +111,13 @@ ScriptEngine::resolve( const Tomahawk::query_ptr& query )
|
||||
rp->setRID( uuid() );
|
||||
rp->setFriendlySource( m_parent->name() );
|
||||
|
||||
if ( m.contains( "year" ) )
|
||||
{
|
||||
QVariantMap attr;
|
||||
attr[ "releaseyear" ] = m.value( "year" );
|
||||
rp->setAttributes( attr );
|
||||
}
|
||||
|
||||
rp->setDuration( m.value( "duration", 0 ).toUInt() );
|
||||
if ( rp->duration() <= 0 && m.contains( "durationString" ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user