From: Neal H. Walfield Date: Sun, 27 Nov 2011 16:24:53 +0000 (+0100) Subject: Woodchuck: Set a stream's freshness according to the configured update internal. X-Git-Url: http://vcs.maemo.org/git/?p=feedingit;a=commitdiff_plain;h=10709e60883674fc275dcd9c21dce57e97a9d6df Woodchuck: Set a stream's freshness according to the configured update internal. --- 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.