Addons.GetAddons missing "label"?
#1
Hi,
just making some first steps with RPC.
Encountered the following "problem":
(and haven't found anything on forums yet)

Trying to get all Addons.
"jsonrpc":"2.0","method":"Addons.GetAddons","params":{}"

getting them all back, fine
Code:
{
    "addons": [
        {
            "addonid": "audiodecoder.nosefart",
            "type": "kodi.audiodecoder"
        },
        {
            "addonid": "metadata.port.hu",
            "type": "xbmc.metadata.scraper.movies"
        },
[...]
   ],
    "limits": {
        "end": 102,
        "start": 0,
        "total": 102
    }
}

Unfortunately, i have some problems parsing that
According to schema, return type Addon.Details extends Item.Details.Base, and this has a mandatory property "label" set.
But there is no label in response, so i'm getting a parsing error.

Is this a bug? Or has this been changed? (Or am i doing something completely wrong?)
Any ideas?
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
Reply
#2
your right, it is specified as a required field but it is not returned.
A bug as far as i would be concerned, but right now if you want to get the name/label you could just add the "name" property


{"jsonrpc":"2.0","method":"Addons.GetAddons","params":{"properties":["name"]},"id":2}
Reply
#3
np for me, i can ignore that; not even needing the label...
FYI: i'm using generated Java POJOs, made out of introspection JSON, and since this was mandatory, it has a check there. (and failed parsing the response accordingly)

Is this something we should report as bug?
(either correct the schema, or the implementation)
Unfortunately, i seem not to be able to login to trac (anolynger?) fixed, cookie problem
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Addons.GetAddons missing "label"?0