mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
* Support year parameter in QtScriptResolver.
This commit is contained in:
@@ -111,6 +111,13 @@ ScriptEngine::resolve( const Tomahawk::query_ptr& query )
|
|||||||
rp->setRID( uuid() );
|
rp->setRID( uuid() );
|
||||||
rp->setFriendlySource( m_parent->name() );
|
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() );
|
rp->setDuration( m.value( "duration", 0 ).toUInt() );
|
||||||
if ( rp->duration() <= 0 && m.contains( "durationString" ) )
|
if ( rp->duration() <= 0 && m.contains( "durationString" ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user