Woodchuck: Set a stream's freshness according to the configured update internal.
authorNeal H. Walfield <neal@walfield.org>
Sun, 27 Nov 2011 16:24:53 +0000 (17:24 +0100)
committerNeal H. Walfield <neal@walfield.org>
Sun, 27 Nov 2011 17:00:58 +0000 (18:00 +0100)
src/rss_sqlite.py

index 3a00254..f1032d7 100644 (file)
@@ -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.