From 10709e60883674fc275dcd9c21dce57e97a9d6df Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sun, 27 Nov 2011 17:24:53 +0100 Subject: [PATCH] Woodchuck: Set a stream's freshness according to the configured update internal. --- src/rss_sqlite.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rss_sqlite.py b/src/rss_sqlite.py index 3a00254..f1032d7 100644 --- a/src/rss_sqlite.py +++ b/src/rss_sqlite.py @@ -1005,12 +1005,15 @@ class Listing(BaseObject): "Registering previously unknown channel: %s (%s)" % (key, title,)) wc().stream_register( - key, title, self.config.getUpdateInterval * 60 * 60) + 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: wc()[key].human_readable_name = title stream_ids.remove (key) + wc()[key].freshness \ + = self.config.getUpdateInterval() * 60 * 60 # Unregister any streams that are no longer subscribed to. -- 1.7.9.5