2010-06-17, 05:15
I would like to write a search engine api available to skins that looks something like this:
User Dialog:
Contains keyboard buttons and textbox.
When the user presses enter, call the search function with the value in the textbox.
Search implementation:
Queries for the current gui state e.i. all, genre, artist, album, etc.
Using the gui state, search the music library for items with that tag for the string given.
Update the gui with the search items.
Questions:
1) Does this api already exist, if so how do I access it from a dialog?
2) If not, can this be done using the python plugin api? (assuming I can access httpapi in the python plugin, which seems to be able to do this?)
Thanks for any advice
User Dialog:
Contains keyboard buttons and textbox.
When the user presses enter, call the search function with the value in the textbox.
Search implementation:
Queries for the current gui state e.i. all, genre, artist, album, etc.
Using the gui state, search the music library for items with that tag for the string given.
Update the gui with the search items.
Questions:
1) Does this api already exist, if so how do I access it from a dialog?
2) If not, can this be done using the python plugin api? (assuming I can access httpapi in the python plugin, which seems to be able to do this?)
Thanks for any advice