Set the woodchuck update interval according to the config
[feedingit] / 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: