2014-12-05, 01:05
In a large music library I have seen that a few artists are returned as a list of artists instead of a single artist like it is defined in the json-rpc api.
Response on Kodi 14.0-RC1
I am catching this special case in code but I think that something is wrong there.
Quote:curl -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"AudioLibrary.GetArtists\", \"params\" : { \"sort\":{\"ignorearticle\":true,\"method\":\"artist\",\"order\":\"ascending\"}, \"properties\": [ \"musicbrainzartistid\", \"fanart\", \"thumbnail\" ]}, \"id\" : 1 }" http://xbmc:8080/jsonrpc | python -mjson.tool
Response on Kodi 14.0-RC1
Quote: {
"artist": "Milt Jackson",
"artistid": 1854,
"fanart": "",
"label": "Milt Jackson",
"musicbrainzartistid": "",
"thumbnail": "image://http%3a%2f%2fcps-static.rovicorp.com%2f3%2fJPG_1080%2fMI0001%2f388%2fMI0001388135.jpg%3fpartner%3dallrovi.com/"
},
{
"artist": [
"Milt Jackson",
"Wes Montgomery"
],
"artistid": 6829,
"fanart": "",
"label": "Milt Jackson / Wes Montgomery",
"musicbrainzartistid": "",
"thumbnail": ""
},
{
"artist": "Milton Banana Trio",
"artistid": 6189,
"fanart": "",
"label": "Milton Banana Trio",
"musicbrainzartistid": "",
"thumbnail": ""
},
I am catching this special case in code but I think that something is wrong there.