Kodi Community Forum

Full Version: Return add-on result to the JSON API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Isn't this already possible through vfs in json rpc? i.e. Files.GetDirectory?
Hrm might be, I'll look in to that!
It would also be great to be able to pass custom JSON back to the request.
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.