command line way of updating library? - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: command line way of updating library? (/showthread.php?tid=38616)
command line way of updating library? - mudboy - 2008-10-08 08:35
I have a bunch of scripts that do file downloading, renaming, transcoding, etc for me and I'd love a method of including a line at the end that can trigger a "Update Library" function in XBMC.
I'm running both my scripts and xbmc on linux (although different machines), but i can call a remote command via ssh without a problem in a script.
at the very least its something i can run in cron. Sure, hitting update library is easy, but the wife is constantly complaining when she can't see that a show/movie that she knows we have isn't "there".
- malloc - 2008-10-09 08:35
there's an ftp command on the xbox that can do this. ftp isn't supported on linux, but perhaps there's an equivalent http command or pyhton command. in the case of python you could use http to run the python script within xbmc.
- Vaslav - 2008-10-10 13:56
I'd like to second this request. A signal handler would be really convenient!
- d4rk - 2008-10-10 18:34
You should be able to do a "ExecBuiltIn(function)" with "XBMC.updatelibrary(database)" as the function (with HTTP API). Check out these 2 links:
- jking2100 - 2008-10-10 20:07
Thanks for directing to the proper location I thought I had read about the built-in command but must have skimmed over that second link.
- Vaslav - 2008-10-10 20:29
For reference, this works great in scripts:
- Bommy - 2010-10-03 18:52
Oops, wrong forum.