Function to search Video Library with a python plugin?
#1
I'm making a plugin (or maybe a script) and I want to use the same search function that is in the Library mode. Is this possible? If yes, what is the command to call?

The plugin is for tastekid.com. The user searches for a movie, then movie recommendations are returned. When the user clicks on one of the recommended movies, the plugin searches the user's video library for that movie.

btw, I tried searching the forums and didn't find anything that can help.
Reply
#2
I know there's functions for arbitrary queries to the music library via the http api, so there may be something similar for the videolibrary. That would be one place to look.

The other way you could do it is a dir fetch on all the movies and then just run through the list.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
the home theater plugin uses httpapi for accessing the video db.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Function to search Video Library with a python plugin?0