Kodi Community Forum
[SOLVED] Quick JSON Question - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: [SOLVED] Quick JSON Question (/showthread.php?tid=185031)



[SOLVED] Quick JSON Question - jacintech.fire - 2014-01-31

This is the JSON call to update the whole library:

Quote: "VideoLibrary.Scan": {
"description": "Scans the video sources for new library items",
"params": [
{
"default": "",
"name": "directory",
"type": "string"
}
],
"returns": {
"type": "string"
},
"type": "method"
}
Here is the RPC:
Quote:curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://<xbmc_remote_client_ip_address>/jsonrpc
Question: How do you specify the "directory" in the call so that only the defined directory is updated:


RE: Quick JSON Question - jacintech.fire - 2014-01-31

Anybody...?
**UPDATE SOLVED**

Quote:curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash", "params": {"directory":"<[protocol]://directory_path/>"}}' -H 'content-type: application/json;' http://<remote_xbmc_client_ip_address>/jsonrpc



RE: [SOLVED] Quick JSON Question - Kib - 2014-02-02

http://wiki.xbmc.org/?title=JSON-RPC_API#Documentation


RE: [SOLVED] Quick JSON Question - jacintech.fire - 2014-02-02

(2014-02-02, 04:21)Kib Wrote: http://wiki.xbmc.org/?title=JSON-RPC_API#Documentation

Yes. Found it yesterday, thanks...