I use JSON and cURL to trigger updates, from this guide http://kodi.wiki/view/HOW-TO:Remotely_update_library
I just have my sync program run a .bat file (the specific string for update library) after sync, and it works perfectly. Sync program monitors the folder (Allway Sync) and UTorrent does its thing.
I used the kodi-send update command with Sparklyballs' version of this docker, but since moving over to this one I get a "exec: "kodi-send": executable file not found in $PATH" error. Any idea on what I need to do to get the kodi-send command to work?
docker exec kodi-headless kodi-send --action="UpdateLibrary(video)"
I wasn't ever able to get kodi-send to work on this docker so I am now using JSON and cURL to trigger updates. I setup a script with this:
curl --silent -H "Content-Type: application/json" -u user:pass -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":"scan"}' http://hostname:port/jsonrpc > /dev/null
I have a crontab setup that runs this script every so often throughout the day so when I open up Kodi on my VM, all of my recently added shows show up and I don't have to manually update and wait . The --silent part is optional but you will get an email every time this runs if you don't include that. Hopefully this helps others that need a way to send updates remotely without using kodi-send.