Beta Metadata Editor - Update library + .nfo informations
#90
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:

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"
                                            }
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply


Messages In This Thread
RE: Metadata Editor - Update library + .nfo informations - by sualfred - 2019-11-14, 00:53
Metadata editor error - by BartZorn - 2023-02-23, 10:02
Logout Mark Read Team Forum Stats Members Help
Metadata Editor - Update library + .nfo informations0