Set the woodchuck update interval according to the config
authorNeal H. Walfield <neal@walfield.org>
Sat, 26 Nov 2011 22:18:47 +0000 (23:18 +0100)
committerNeal H. Walfield <neal@walfield.org>
Sun, 27 Nov 2011 17:00:57 +0000 (18:00 +0100)
src/rss_sqlite.py

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