Return add-on result to the JSON API
#1
Lightbulb 
Not sure if it's been mentioned here already. All add-ons I've been using is built on different listings, so it would be nice to expose the "list" back to the JSON API so a remote app on the phone/tablet could execute the add-on and you can browse video listings etc in the phone and start the playback from there. Same goes for the future development with for example the Spotify add-on so you could start the playback of a song/playlist without the need of a display.
Reply
#2
Isn't this already possible through vfs in json rpc? i.e. Files.GetDirectory?
If you have problems please read this before posting

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

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Hrm might be, I'll look in to that!
Reply
#4
It would also be great to be able to pass custom JSON back to the request.
Reply
#5
The problem with Files.GetDirectory is that it only works on plugins and it only supports a specific set of properties to be retrieved so if the plugin adds additional properties those can't be retrieved. But otherwise you should be able to use Files.GetDirectory to e.g. browse through the youtube plugin.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Return add-on result to the JSON API0