Kodi Community Forum

Full Version: Wanting to send JSON to go to Video -> Video Add-ons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can't seem to find a way to do so. For Video -> Movies for example, this works:

Code:
http://192.168.3.24:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","parameters":["Movies"]},"id":"1"}}

But for Video -> Video add-ons, I cannot get it to work:

Code:
http://192.168.3.24:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","parameters":["Video add-ons"]},"id":"1"}}

Is it the space that is failing perhaps? I cannot go to TV Shows either.

Code:
http://192.168.3.24:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","parameters":["TV shows"]},"id":"1"}}

I am urlencoding, so, for example on the Video add-ons example:

Code:
http%3A%2F%2F192.168.3.24%3A8080%2Fjsonrpc%3Frequest%3D%7B%22jsonrpc%22%3A%222.0%22%2C%22method%22%3A%22GUI.ActivateWindow%22%2C%22params%22%3A%7B%22window%22%3A%22videos%22%2C%22parameters%22%3A%5B%22Video%20add-ons%22%5D%7D%2C%22id%22%3A%221%22%7D%7D

How can I use JSON to get the Video add-ons to come up?
there is a spec. and use of that method is linked directly here:
http://kodi.wiki/view/JSON-RPC_API/v6#GU...vateWindow

there is NO documentation of the "parameters" parameter, so im always impressed when people get anywhere with it whatsoever even have read the spec.

that said, try this:
http://192.168.3.24:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","parameters":["library://video/addons.xml/"]},"id":"1"}}

first ones free but then next one will cost you!
Here's is what worked:

Code:
http://192.168.3.24:8080/jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","parameters":["addons://sources/video/"]},"id":"1"}

Yes, documentation is at least somewhat there. Just takes some playing around I guess.