-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Hello,
I think the integrated documentation for VideoLibrary.Export in "The Lab" should be fixed or made less confusing.
Here is a working cURL call inspired from this thread:
curl -X POST --data-binary '{"jsonrpc":"2.0","method":"VideoLibrary.Export","params":{"options":{"actorthumbs":true,"images":true,"overwrite":true}}}' -H 'content-type: application/json;' http://<IP>:<PORT>/jsonrpc --verboseTaking the params object only in "The Lab" also triggers the export, but here is how the "Method Params" are rendered there:

According to this scheme, the working cURL above should have included some array levels, which obviously make it crash.
I found src/js/apps/command/kodi/helpers/videolibrary.js.coffee, from where the definitions of other methods seems to come from.
If I got things right, those definitions are used during the rendering process in src/js/apps/lab/apiBrowser/apiBrowser_view.js.coffee, but no idea where is the definition for export, even though I see scan and clean there, which I would have expected to be near export... 😕
I'm using Chorus2 version 21.x-1.0.1 from docker-kodi-headless Omega (on personnal NAS with Docker standalone) and same version packaged by LibreElec (on Raspberry-Pi 4)