2013-04-27, 00:54
(2013-04-26, 21:17)SevenNine Wrote: Regardless, I've setup a script to update artwork nightly now.. using curl and json.. for others that may need it:
curl --user USERASS --include --header 'content-type: application/json;' --request POST --data '{"jsonrpc": "2.0", "method": "Addons.ExecuteAddon", "params": { "wait": true, "addonid": "script.artwork.downloader", "params": [ ] } } ' http://HOSTNAME:8080/jsonrpc
Obviously, replace USER, PASS, and HOSTNAME with appropriate for the config. This updates all artwork configured in the add-on settings (blank params).
Wow, that's pretty technical! Does the file need anything else in it besides that curl statement? Just for the meatheads among us, how do you get it to run nightly? Would that process wake the computer up? Or if it's not awake would it just do it the next time it wakes up? Does XBMC have to be running for it to work?