Posts: 501
Joined: Nov 2007
Reputation:
3
2008-03-02, 03:48
My parents are ALWAYS forgetting to update their video library, which is bad because I have an automated system of RSS feeds and torrents which deposits new shows for them daily.
My Mom made a suggestion to me that makes perfect sense -- a setting you can turn on so that every night at a specified time, XBMC would update the library.
Yes I know you can set it to do this when its first turned on, but they don't usually turn it off. So that requires thought..Right back to them forgetting to do it :p
A setting would be a set it and forget it thing that would just take care of itself.
I have a couple ideas rolling around in the emptyness of my head whereby I think I can make this work, sort of, in the skin XML, but this is a feature I think would be good to have.
Posts: 106
Joined: Feb 2006
Reputation:
0
If the xbox is on 24/7, why not write a script that is started using autoexec.py. You could either go the alarm way, or just make it update every x seconds, using the time.sleep function.
could basically be:
while 1:
XBMC.updateLibrary("video")
time.sleep(21600)
That would update the script every 6 hours (60*60*6)
Posts: 4,132
Joined: May 2004
Reputation:
4
sho
Team-XBMC Member
Posts: 4,132
Unless you manage to track down the person that did the on boot update patch and convince him to code this, I wouldn't hold my breath.
Posts: 63
Joined: Feb 2008
Reputation:
0
Any idea how this would be implemented on linux? I haven't found the python lib to import.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
import xbmc unless my memory is all wrong. the py obviously has to run in our interpreter.
if you want to run it outside xbmc, you need to rely on the http server, in which case its just a matter of using urllib
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
this shouldnt be difficult to implement. xbmc knows the current time via ntp. and is really nothing more than a huge loop so an interval based timer is already possible. (some functions already take advantage of this such as the screensaver.)
the simple radio button "update database on startup" could be replaced with an "update database automatically" option which is a list that contains "never", "on startup", "at a specified time", and "at a fixed time interval". then some additional settings fields are visible if either "at a specified time", or "at a fixed interval" are selected so that they can be set.
Posts: 385
Joined: Feb 2004
Reputation:
4
I think this is a good idea, I was planning on using the update library on startup but my xbox is on 24/7 so a scheduled update would be a very good addition to xbmc.
Hardware: Revo 3610 + SSD - Harmony 700 Remote
Software: XBMCBuntu Gotham -
Sickbeard -
SabNZBd+
Posts: 59
Joined: Jul 2008
Reputation:
0
Hopefully not off topic, but could there be a script to "monitor" your sources for content changes and update in the background?
nmrs2
Unregistered
nmrs2
Unregistered
Posts: N/A
Is there a setting somewhere to enable automatic updating of the library in the background? In the video settings tab I only have Update Library on Startup, but I generally just leave my apple tv on, so startup never happens, so I have to manually update the library...