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

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
deckoff Offline
Member
Posts: 56
Joined: Apr 2011
Reputation: 0
Location: Sofia, BG
Post: #1
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

sleep 120

curl --get "http://192.168.1.104:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)"

Since the update,
Code:
curl --get "http://192.168.1.104:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)"
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...
(This post was last modified: 2012-04-02 18:41 by deckoff.)
find quote
deckoff Offline
Member
Posts: 56
Joined: Apr 2011
Reputation: 0
Location: Sofia, BG
Post: #2
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
find quote