Posts: 94
Joined: Mar 2009
Reputation:
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
Posts: 4,997
Joined: May 2004
Reputation:
12
See the wiki article about XBMC's httpapi.
Posts: 94
Joined: Mar 2009
Reputation:
1
Thanks. The wiki article of httpapi sounds difficult. But i will try it.
Posts: 94
Joined: Mar 2009
Reputation:
1
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).
Posts: 2,064
Joined: Jan 2009
Reputation:
34
prae5
Team-XBMC Forum Moderator
Posts: 2,064
curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)" > /dev/null
stick it in a cronjob and it will auto update
Posts: 2
Joined: Aug 2008
Reputation:
0
Does that command clean up and scan for new content or only the latter?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
depends on whether or not you have cleanonupdate activated - see advancedsettings.xml in the wiki
Posts: 231
Joined: Jan 2008
Reputation:
0
I set the "one" button on my remote for this
<one>UpdateLibrary(video)</one>
Posts: 21
Joined: Nov 2009
Reputation:
0
xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.CleanLibrary(video)
or
xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.CleanLibrary(audio)