[SOLVED] Quick JSON Question
#1
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:
Reply
#2
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
Reply
#3
http://wiki.xbmc.org/?title=JSON-RPC_API#Documentation
Reply
#4
(2014-02-02, 04:21)Kib Wrote: http://wiki.xbmc.org/?title=JSON-RPC_API#Documentation

Yes. Found it yesterday, thanks...
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] Quick JSON Question0