Finding out which properties are supported for a JSON function
#1
Let's say I want to use "Player.GetItem" and I look at http://wiki.xbmc.org/?title=JSON-RPC_API/v6.

The doc says it returned an item of type "List.Item.All". List.Item.All has properties like "channel", "starttime", etc..
It also extends "List.Item.Base", so you can go up the hierarchy.

But most of the properties are not supported. So far I had to just try out properties and see if they are returned. Is there a way to find this in the spec? Or in the XBMC source code?

Thanks,
Markus
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#2
List.Item.All is a collection of all possible properties but depending on the media type you can only get a subset. So when you use Player.GetItem on the music player you should know that you'll only get properties that are defined for songs. With the video player it's a bit more complicated since you don't know whether the video is a movie, episode or music video but in general the same principle applies.
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
Finding out which properties are supported for a JSON function0