Command to refresh/cleanup library
#1
Hi

Are there commands to refresh the music library and cleanup the video library?

I use ssh, so it would simplify me the work.


Thanks
Reply
#2
See the wiki article about XBMC's httpapi.
Reply
#3
Thanks. The wiki article of httpapi sounds difficult. But i will try it.
Reply
#4
Ok, think I understand how to get connected. But I could not find a command to refresh the music library and cleanup the video library. The only command that refresh the music library is restart (because xbmc loads the music library when restarted).
Reply
#5
curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

stick it in a cronjob and it will auto update
Reply
#6
prae5 Wrote:curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

stick it in a cronjob and it will auto update

Thanks... perfect!

Edit correct command: "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.UpdateLibrary(video)" (no space between Update and Library).
Reply
#7
Does that command clean up and scan for new content or only the latter?
Reply
#8
depends on whether or not you have cleanonupdate activated - see advancedsettings.xml in the wiki
Reply
#9
I set the "one" button on my remote for this

<one>UpdateLibrary(video)</one>
Reply
#10
xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.CleanLibrary(video)

or

xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.CleanLibrary(audio)
Reply

Logout Mark Read Team Forum Stats Members Help
Command to refresh/cleanup library0