Sunday, April 5, 2015

XBMC update library

Another small script to call Update Library on your XBMC/Kodi system, useful to call as a post-exec after other jobs or downloads.

#!/bin/sh

curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "myScipt"}' -H 'content-type: application/json;' http://your_ip:8090/jsonrpc > /dev/null 2>&1

exit 0

No comments:

Post a Comment