Thread Rating:
  • 0 Vote(s) - 0 Average
[EDIT] How to trigger Library scan for new items via script in EDEN?
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

#! /bin/bash

sleep 120

curl --get ""

Since the update,
curl --get ""
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 Wink

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...
Oh, god!
Seems to be scrapper problem. The solution is (probably) to (re-)install youtube plug-in...

[EDIT] How to trigger Library scan for new items via script in EDEN?00