2009-10-11, 02:00
Getting frustrated by having to use the context menu all the time to scan for new content, I did a search and came across this handy command using cron and the xbmc http api to update the library every 5 minutes.
*/5 * * * * curl "http://192.168..66:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)" > /dev/null
now, I've set this up to run on one of my linux machines, but I was wondering if there was a way to get this working on the appletv. I searched and found you can copy cron from a 10.4 osx install to the appletv, but alas, I don't have any machines running 10.4.
I've found that you can do certain things with launchd, but I'm unable to find specific answers for what I want to do.
How can you use launchd to run the command above on the appletv so that it regularly updates the library via the http api?
*/5 * * * * curl "http://192.168..66:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)" > /dev/null
now, I've set this up to run on one of my linux machines, but I was wondering if there was a way to get this working on the appletv. I searched and found you can copy cron from a 10.4 osx install to the appletv, but alas, I don't have any machines running 10.4.
I've found that you can do certain things with launchd, but I'm unable to find specific answers for what I want to do.
How can you use launchd to run the command above on the appletv so that it regularly updates the library via the http api?