1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Add stub for passing filter to [album]Tracks() in script collection

This commit is contained in:
Dominik Schmidt
2015-04-07 00:53:19 +02:00
committed by Christian Muehlhaeuser
parent df1d071922
commit aab9b28bdf

View File

@@ -65,9 +65,16 @@ ScriptCommand_AllTracks::exec()
}
ScriptJob* job;
QVariantMap arguments;
// TODO: implement filter
// if ( !m_filter.isEmpty() )
// {
// arguments[ "filter" ] = m_filter;
// }
if( m_album )
{
QVariantMap arguments;
arguments[ "artist" ] = m_album->artist()->name();
arguments[ "album" ] = m_album->name();
@@ -75,7 +82,7 @@ ScriptCommand_AllTracks::exec()
}
else
{
job = collection->scriptObject()->invoke( "tracks" );
job = collection->scriptObject()->invoke( "tracks", arguments );
}