mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
Support legacy collection api
This commit is contained in:
@@ -155,6 +155,7 @@ JSAccount::syncInvoke( const scriptobject_ptr& scriptObject, const QString& meth
|
||||
{
|
||||
QString eval = QString(
|
||||
"Tomahawk.PluginManager.invokeSync("
|
||||
"0, " // requestId
|
||||
"'%1'," // objectId
|
||||
"'%2'," // methodName
|
||||
"%3" // arguments
|
||||
|
@@ -308,7 +308,7 @@ JSResolverHelper::addUrlResult( const QString& url, const QVariantMap& result )
|
||||
|
||||
|
||||
void
|
||||
JSResolverHelper::reportCapabilities( const QVariant& v )
|
||||
JSResolverHelper::nativeReportCapabilities( const QVariant& v )
|
||||
{
|
||||
bool ok;
|
||||
int intCap = v.toInt( &ok );
|
||||
|
@@ -145,7 +145,7 @@ public slots:
|
||||
|
||||
void addUrlResult( const QString& url, const QVariantMap& result );
|
||||
|
||||
void reportCapabilities( const QVariant& capabilities );
|
||||
void nativeReportCapabilities( const QVariant& capabilities );
|
||||
|
||||
void reportScriptJobResults( const QVariantMap& result );
|
||||
|
||||
|
@@ -112,7 +112,7 @@ ScriptCommand_AllTracks::onTracksJobDone( const QVariantMap& result )
|
||||
QSharedPointer< ScriptCollection > collection = m_collection.objectCast< ScriptCollection >();
|
||||
Q_ASSERT( !collection.isNull() );
|
||||
|
||||
QList< Tomahawk::result_ptr > t = collection->scriptAccount()->parseResultVariantList( result[ "tracks"].toList() );
|
||||
QList< Tomahawk::result_ptr > t = collection->scriptAccount()->parseResultVariantList( result[ "results"].toList() );
|
||||
|
||||
|
||||
QList< Tomahawk::query_ptr > queries;
|
||||
|
Reference in New Issue
Block a user