Eden search libaries via an API call
#1
Question 
I am looking to develop a very basic script, that requires the ability to search the (XBMC) audio library and return records based on this search. Records returned from the search would then be added to a playlist via XBMC api calls.
Reading through Eden development documentation, i came across the following (at http://wiki.xbmc.org/index.php?title=Eden_API_changes).
Quote:Direct use of sqlite/mysql to access XBMC's databases is HIGHLY discouraged and may be rejected. Use a properly abstracted interface like JSONRPC instead.

This does make sense, as requires more overhead in the addon/script and needless additional work by the plugin dev, while maintaining conditional beavhiour based on the two different DB types (db interaction should be abstracted to an API).

Searching the JSON docs at http://wiki.xbmc.org/index.php?title=JSO....NotifyAll , i am unable to locate any call that would provide a "search" functionality, am i missing something?

Leaving the only option to either query the db, or execute a AudioLibrary.GetArtists, AudioLibrary.GetSongs or AudioLibrary.GetAlbums and cache this data locally. Likely these these AudioLibrary.Get* calls against large libraries (50,000+ song libraries), would chew resources.

So my question is, how do i perform a library search via an API call? I've likely missed or misread docs somewhere, so please feel free to punt me to a wiki article stating how this is done.

jw
Reply

Logout Mark Read Team Forum Stats Members Help
Eden search libaries via an API call0