[EDIT] How to trigger Library scan for new items via script in EDEN? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [EDIT] How to trigger Library scan for new items via script in EDEN? (/showthread.php?tid=127527) |
[EDIT] How to trigger Library scan for new items via script in EDEN? - deckoff - 2012-04-02 1) I cant update through the web interface anymore. I used a script to trigger update of the Video Library on various events (item downloaded, resume, etc) Here is the script Code: #! /bin/bash Since the update, Code: curl --get "http://192.168.1.104:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)" Manual update (right click, update) will trigger and execute rescan without any problems. It seems that the Web Server HTTP API is deprecated with Eden, and I have to use the Json. I dont know how to di , though, can I use it in shell script. Please, if anyone can help, post how-to example I tried with this, too: curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.Scan", "id": "mybash"}' -H 'content-type: application/json;' http://IP:8080/jsonrpc Same error. Tried to re-scan (right-click) the movies lib, same error. It this a movie.db error , or XBMC bug? Tv episodes scan ok ( when I right-click an episodes folder... RE: [EDIT] How to trigger Library scan for new items via script in EDEN? - deckoff - 2012-04-02 Oh, god! Seems to be scrapper problem. The solution is (probably) to (re-)install youtube plug-in... http://forum.xbmc.org/showthread.php?tid=117605 |