From c4d6c356297cd342daf0fb812b0b6aa5f65d2fb1 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sat, 26 Nov 2011 23:18:47 +0100 Subject: [PATCH] Set the woodchuck update interval according to the config --- src/rss_sqlite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rss_sqlite.py b/src/rss_sqlite.py index 9bc7a8a..3a00254 100644 --- a/src/rss_sqlite.py +++ b/src/rss_sqlite.py @@ -1004,8 +1004,8 @@ class Listing(BaseObject): logger.debug( "Registering previously unknown channel: %s (%s)" % (key, title,)) - # Use a default refresh interval of 6 hours. - wc().stream_register (key, title, 6 * 60 * 60) + wc().stream_register( + key, title, self.config.getUpdateInterval * 60 * 60) else: # Make sure the human readable name is up to date. if wc()[key].human_readable_name != title: -- 1.7.9.5