Updating/cleaning a Kodi video library via curl
Using the JSON RPC API you can update a kodi library using the following:
curl -v -d '{"method":"VideoLibrary.Scan", "id":"scan","jsonrpc":"2.0"}' -H 'content-type:application/json' http://localhost/jsonrpc
Or clean it using:
curl -v -d '{"method":"VideoLibrary.Clean", "id":"scan","jsonrpc":"2.0"}' -H 'content-type:application/json' http://localhost/jsonrpc