Kodi Community Forum

Full Version: musicbrainz id's not returned according to json-rpc schema
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
AudioLibrary.GetSongDetails and AudioLibrary.GetSongs return musicbrainzalbumartistid and musicbrainzartistid as arrays instead of string as defined in the json-rpc schema. Kodi 15.2 was returning the correct values. Tested on Kodi 17.0-ALPHA1 (compiled dec 12 2015)

Request
Code:
http://localhost:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22AudioLibrary.GetSongDetails%22,%22params%22:{%22songid%22:1,%22properties%22:[%22musicbrainztrackid%22,%22musicbrainzartistid%22,%22musicbrainzalbumid%22,%22musicbrainzalbumartistid%22]},%22id%22:3}

Returns
Code:
{
    "songdetails": {
        "label": "Apple Tree",
        "musicbrainzalbumartistid": [],
        "musicbrainzalbumid": "",
        "musicbrainzartistid": [
            ""
        ],
        "musicbrainztrackid": "",
        "songid": 1
    }
}

and
Code:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"AudioLibrary.GetSongs","params":{"properties":["musicbrainztrackid","musicbrainzartistid","musicbrainzalbumid","musicbrainzalbumartistid"],"limits":{"end":1,"start":0}},"id":4}

returns
Code:
{
    "limits": {
        "end": 1,
        "start": 0,
        "total": 13740
    },
    "songs": [
        {
            "label": "Apple Tree",
            "musicbrainzalbumartistid": [],
            "musicbrainzalbumid": "",
            "musicbrainzartistid": [],
            "musicbrainztrackid": "",
            "songid": 1
        }
    ]
}
v17 eh, a real pioneer...

I posted this issue some time ago, the reply was that arrays are what they should have always been, it makes sense as its a much better way to report multiple artists.
And still a single marquee artist can still be displayed as DisplayArtist i think...
So yep this is they way it is since v16.
(2015-12-16, 01:32)axa88 Wrote: [ -> ]v17 eh, a real pioneer...

Not really. Just using the ubuntu nightly build ppa on one of my systems to occasionally check if my app still works ;-)

(2015-12-16, 01:32)axa88 Wrote: [ -> ]I posted this issue some time ago, the reply was that arrays are what they should have always been, it makes sense as its a much better way to report multiple artists.
And still a single marquee artist can still be displayed as DisplayArtist i think...
So yep this is they way it is since v16.

The change is fine with me. However the json-rpc schema description ( http://127.0.0.1:8080/jsonrpc ) isn't up to date.
(2015-12-16, 09:55)Millencolin007 Wrote: [ -> ]
(2015-12-16, 01:32)axa88 Wrote: [ -> ]v17 eh, a real pioneer...

Not really. Just using the ubuntu nightly build ppa on one of my systems to occasionally check if my app still works ;-)

(2015-12-16, 01:32)axa88 Wrote: [ -> ]I posted this issue some time ago, the reply was that arrays are what they should have always been, it makes sense as its a much better way to report multiple artists.
And still a single marquee artist can still be displayed as DisplayArtist i think...
So yep this is they way it is since v16.

The change is fine with me. However the json-rpc schema description ( http://127.0.0.1:8080/jsonrpc ) isn't up to date.

nor the online api doc... just the way it is thus far...