Update interval on library mode and recently added
#1
Hi,

Is there any way to set the library-db to update every hour?
I.e for now if I add a folder in where the library-mode is enabled I either have to update it manually or restart xbmc.

The Recently added function is nice, but if I watched an movie or episode, shouldnt it automaticly be removed from there ?

Cheers
Reply
#2
add a cronjob with the following:

Code:
15    *    *    *    *    curl "http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)" > /dev/null

it will update your library every 15 mins.
Reply
#3
Thanks ;=)

Just had to apt-get install curl and enable http-server under network, for thoose others who are intressted.

Is there some wiki this could be added to?
Reply
#4
http://wiki.xbmc.org/?title=Main_Page

Not sure if its in the wiki, certainly would be worth adding.
Reply
#5
I guess the updatelibrary(video) can be changed to music also?
Reply
#6
yes - and lots more

have a look at http://wiki.xbmc.org/?title=WebServerHTTP-API
Reply
#7
For some reason my library doesnt seem to update it self, in xbmc.log it looks like this.

Trying from GUI gives the same error, new tv-shows and movies doesnt show up.

Code:
11:28:11 T:34798448 M:1445605376  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:28:16 T:34798448 M:1444814848   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:17 T:34798448 M:1444958208   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:18 T:34798448 M:1444577280   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:18 T:34798448 M:1444728832  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:02
11:28:22 T:34798448 M:1445539840  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:28:48 T:3027237744 M:1441189888  NOTICE: -->Python Interpreter Initialized<--
11:29:07 T:3027237744 M:1436876800  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:34798448 M:1441234944  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:29:27 T:34798448 M:1441579008  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:29:55 T:3027237744 M:1426558976  NOTICE: -->Python Interpreter Initialized<--
11:31:34 T:34798448 M:1437282304  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:25 T:34798448 M:1425195008  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:30 T:34798448 M:1433792512  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:35 T:34798448 M:1434853376  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
Reply
#8
lajbans Wrote:For some reason my library doesnt seem to update it self, in xbmc.log it looks like this.

Trying from GUI gives the same error, new tv-shows and movies doesnt show up.

Code:
11:28:11 T:34798448 M:1445605376  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:28:16 T:34798448 M:1444814848   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:17 T:34798448 M:1444958208   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:18 T:34798448 M:1444577280   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
11:28:18 T:34798448 M:1444728832  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:02
11:28:22 T:34798448 M:1445539840  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:28:48 T:3027237744 M:1441189888  NOTICE: -->Python Interpreter Initialized<--
11:29:07 T:3027237744 M:1436876800  NOTICE: -->Python Interpreter Initialized<--
11:29:22 T:34798448 M:1441234944  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:29:27 T:34798448 M:1441579008  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:29:55 T:3027237744 M:1426558976  NOTICE: -->Python Interpreter Initialized<--
11:31:34 T:34798448 M:1437282304  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:25 T:34798448 M:1425195008  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:30 T:34798448 M:1433792512  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00
11:32:35 T:34798448 M:1434853376  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:00

Looks like thetvdb.com is down, wich makes xbmc fail
http://forums.thetvdb.com/viewtopic.php?...&start=100
Reply

Logout Mark Read Team Forum Stats Members Help
Update interval on library mode and recently added0