1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-27 07:44:34 +02:00

Merge pull request #158 from tomahawk-player/scriptcollection-ng

ScriptCollection support. Please test.
This commit is contained in:
Teo Mrnjavac
2013-02-08 09:39:09 -08:00
95 changed files with 1992 additions and 216 deletions

View File

@@ -79,6 +79,14 @@ Tomahawk.extend = function(object, members) {
};
var TomahawkResolverCapability = {
NullCapability: 0,
Browsable: 1,
PlaylistSync: 2,
AccountFactory: 4
};
// Resolver BaseObject, inherit it to implement your own resolver
var TomahawkResolver = {
init: function()
@@ -125,6 +133,24 @@ var TomahawkResolver = {
search: function( qid, searchString )
{
return this.resolve( qid, "", "", searchString );
},
artists: function( qid )
{
return {
qid: qid
};
},
albums: function( qid, artist )
{
return {
qid: qid
};
},
tracks: function( qid, artist, album )
{
return {
qid: qid
};
}
};