2019-11-14, 00:53
I have no way to get the default uniqueid thru JSON. It's just an array:
{'imdb': 'tt1234123', 'tmdb': '580', ....}
Only the .nfo has a "default=true" attribute, which is handled by the core in some way.
To be honest... the complete uniqueid structure is confusing to me because of this. It's also linked to ListItem.IMDBNumber somehow and to the ratings table. But I don't really understand when and how.
@DaveBlake
{ "name": "uniqueid", "type": [ "null", { "$ref": "Media.UniqueID.Set", "required": true } ], "default": null }
I guess it's too late and I'm feeling dumb, but how would the JSON cmd look like if I want to provide a default like in this line from methods.json?
Because this is returning me a error:
{'imdb': 'tt1234123', 'tmdb': '580', ....}
Only the .nfo has a "default=true" attribute, which is handled by the core in some way.
To be honest... the complete uniqueid structure is confusing to me because of this. It's also linked to ListItem.IMDBNumber somehow and to the ratings table. But I don't really understand when and how.
@DaveBlake
{ "name": "uniqueid", "type": [ "null", { "$ref": "Media.UniqueID.Set", "required": true } ], "default": null }
I guess it's too late and I'm feeling dumb, but how would the JSON cmd look like if I want to provide a default like in this line from methods.json?
Because this is returning me a error:
Code:
2019-11-13 23:55:19.505 T:26880 NOTICE: [ script.metadata.editor ] --> JSON CALL: {
"id": 1,
"jsonrpc": "2.0",
"method": "VideoLibrary.SetmovieDetails",
"params": {
"default": "tmdb",
"movieid": 1,
"uniqueid": {
"tmdb": "584"
}
}
}
2019-11-13 23:55:19.505 T:26880 NOTICE: [ script.metadata.editor ] --> JSON RESULT: {
"error": {
"code": -32602,
"data": {
"message": "Too many parameters",
"method": "VideoLibrary.SetMovieDetails",
"stack": {
"name": "uniqueid",
"type": [
"null",
"object"
]
}
},
"message": "Invalid params."
},
"id": 1,
"jsonrpc": "2.0"
}