I was wondering if there is a way to somehow automagically update a library from cron on through some other means. I keep my files on a file server in basement. It is accessible through SMB (or SAMBA). I add things to the storage many times to watch, but they don't appear in the XBMC as it needs to update library.
There is a way to initialize library update through built-in web server. It just needs to be run through curl or wget to use it in scripts:
curl 'http://xbmc:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)'
or
curl 'http://xbmc:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(music)'
There is much more commands which can be used:
http://xbmc.org/wiki/?title=WebServe...ction_commands
http://xbmc.org/wiki/?title=List_of_Built_In_Functions
No comments:
Post a Comment