2012-02-09, 23:30
I just posted a pull request for the main XBMC repo with a few updates - thanks to pkscuot for the basis for a lot of what went into this one.
A few small things that I liked from pskcout's code got merged in some form. Basically the ability to run the update even while the player is running, checking for setting changes during each run so settings can be modified without an XBMC restart, and some better log formatting.
I did like the idea behind making the timers a little more flexible but letting the user kind of build their own timer through the gui seemed kind of painful. Instead I opted for a cron style scheduler. In the 'Advanced' Timer mode you can specify a cron expression that the updater will run on instead of using the basic hourly timer interval. This should be a lot more flexible for people and give them almost endless options for configuring the timers. Cron knowledge is necessary but that can be picked up using Google in about 1 min.
As a side note, it has occurred to me that by using the cron expression timers this addon could be easily modified to not only do updates, but allow a host of XBMC built in functions to run via a cron scheduler. The 'program' function could let a user setup multiple timers for XBMC functions and the 'service' part could execute them accordingly. Probably not something I'll get to anytime soon though.
A few small things that I liked from pskcout's code got merged in some form. Basically the ability to run the update even while the player is running, checking for setting changes during each run so settings can be modified without an XBMC restart, and some better log formatting.
I did like the idea behind making the timers a little more flexible but letting the user kind of build their own timer through the gui seemed kind of painful. Instead I opted for a cron style scheduler. In the 'Advanced' Timer mode you can specify a cron expression that the updater will run on instead of using the basic hourly timer interval. This should be a lot more flexible for people and give them almost endless options for configuring the timers. Cron knowledge is necessary but that can be picked up using Google in about 1 min.
As a side note, it has occurred to me that by using the cron expression timers this addon could be easily modified to not only do updates, but allow a host of XBMC built in functions to run via a cron scheduler. The 'program' function could let a user setup multiple timers for XBMC functions and the 'service' part could execute them accordingly. Probably not something I'll get to anytime soon though.