[LINUX] Auto Update Library?
#1
Question 
hey all,

I've seen some scripts for Windows that will detect if a new file is in a folder (for example a new movie in the SMB shared folder) and then triggers a library update.

How would you do this in Linux? I'm running XBMCbuntu now that I've seen the light and ditched live.

Cheers,

Pete
Reply
#2
Enable the web interface on xbmc and then add a cron job with this command:

Code:
0    *    *    *    *    curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

This will update the library every minute.
Reply
#3
prae5 Wrote:Enable the web interface on xbmc and then add a cron job with this command:

Code:
0    *    *    *    *    curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

This will update the library every minute.

So that one basicly keeps scanning the sources you have added under Videos then? How can I change it to only scan once every few hours for instance?
Reply
#4
thescorp Wrote:So that one basicly keeps scanning the sources you have added under Videos then? How can I change it to only scan once every few hours for instance?

change
Code:
0 * * * *

in the beginning of the crontab row for your specific command to e.g.

Code:
0 */4 * * *

The command will now be runned every fourth hour
Reply
#5
It's not working for me... should it be in my xbmc user's crontab or my root crontab?
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] Auto Update Library?0