2012-04-02, 15:04
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
Since the update,
will trigger the update function, but XBMC will throw an error that it cannot connect to remote server(or something like this)
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...
Here is the script
Code:
#! /bin/bash
sleep 120
curl --get "http://192.168.1.104:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)"
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...