Kodi Community Forum

Full Version: Go to the list of a specific genre of movies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am developping the interface of my HTTP remote (a philips Pronto) and I am using the JSON-RPC API v6. First, I developped the interface to access the music library (by album, genre, artist) on the remote, so I can listen to music with no need of any screen (other than the remote's one).

Now, I would like to do the same for the movies with one main difference : I don't want to get the video library on the remote, I want to use the GUI to select the movie I want to watch, Because my children will use the remote, I would like it to be very easy to use. For example, I would like to create a button that make XBMC show the list of movies of a specific genre. For example, a click on the "Animation" button will show the list of movies with the genre "Animation" in the XBMC GUI.
Is there a way to do that ? With GUI.ActivateWindow ? With which parameters ?

Thank you for your help !

PS : I hope you will understand my bad english !
I think that GUI.ActivateWindow should work. Those two links should help you to get the right parameters

http://wiki.xbmc.org/index.php?title=Window_IDs
http://wiki.xbmc.org/index.php?title=Ope...nd_Dialogs
You can show and sort by genres with ActivateWindow(Videos,MovieGenres) but afaik you cannot filter genres in the gui via json.
Something like this works using json-rpc

Code:
curl  -H "Content-Type: application/json"  -d "{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"GUI.ActivateWindow\",\"params\":{\"window\":\"video\", \"parameters\":[\"videodb://1/1/4\"]}}" http://10.0.0.236:8080/jsonrpc

videodb://1/1/4 is the library path you have to specify in the json-rpc call (replace "4" with the desired genre id)
You are right ! It works exactly as I expected !

Thank you very much !