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:
@@ -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
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user