AudioLibrary.GetArtists - what am I doing wrong?
#1
My call:
Code:
{ "jsonrpc": "2.0", "id": 1, "method": "AudioLibrary.GetArtists", "params": { "properties":["title"], "sort":{ "order": "ascending", "method": "label", "ignorearticle": True } }
My response:
Code:
{"error":{"code":-32602,"data":{"method":"AudioLibrary.GetArtists","stack":{"message":"array element at index 0 does not match","name":"Item.Fields.Base","property":{"message":"Received value does not match any of the defined enum values","type":"string"},"type":"array"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

What am I missing?
Image
Reply
#2
Check JSON-RPC's introspect. artists don't have a "title" property which is also what the error message tells you. These are the available properties:
Code:
"instrument", "style", "mood", "born", "formed", "description", "genre", "died", "disbanded", "yearsactive", "musicbrainzartistid", "fanart", "thumbnail", "compilationartist"
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
AudioLibrary.GetArtists - what am I doing wrong?0