AutoTimer: add "Fast Scan" support
[vuplus_dvbapp-plugin] / autotimer / src / plugin.py
index 94d355a..f6a0cf1 100644 (file)
@@ -18,8 +18,8 @@ config.plugins.autotimer.autopoll = ConfigEnableDisable(default = False)
 config.plugins.autotimer.interval = ConfigNumber(default = 3)
 config.plugins.autotimer.refresh = ConfigSelection(choices = [
                ("none", _("None")),
-               ("auto", _("Only AutoTimers created during this Session")),
-               ("all", _("All non-repeating Timers"))
+               ("auto", _("Only AutoTimers created during this session")),
+               ("all", _("All non-repeating timers"))
        ], default = "none"
 )
 config.plugins.autotimer.try_guessing = ConfigEnableDisable(default = True)
@@ -30,6 +30,7 @@ config.plugins.autotimer.editor = ConfigSelection(choices = [
 )
 config.plugins.autotimer.disabled_on_conflict = ConfigEnableDisable(default = False)
 config.plugins.autotimer.show_in_extensionsmenu = ConfigYesNo(default = False)
+config.plugins.autotimer.fastscan = ConfigYesNo(default = False)
 
 autotimer = None
 autopoller = None
@@ -60,7 +61,7 @@ def autostart(reason, **kwargs):
                        # We re-read the config so we won't save wrong information
                        try:
                                autotimer.readXml()
-                       except:
+                       except Exception:
                                # XXX: we should at least dump the error
                                pass
 
@@ -161,8 +162,8 @@ def Plugins(**kwargs):
        l = [
                PluginDescriptor(where = PluginDescriptor.WHERE_AUTOSTART, fnc = autostart),
                PluginDescriptor(name="AutoTimer", description = _("Edit Timers and scan for new Events"), where = PluginDescriptor.WHERE_PLUGINMENU, icon = "plugin.png", fnc = main),
-               PluginDescriptor(name="AutoTimer", description= _("Add AutoTimer..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc = movielist),
-               PluginDescriptor(name="AutoTimer", description= _("Add AutoTimer..."), where = PluginDescriptor.WHERE_EVENTINFO, fnc = eventinfo),
+               PluginDescriptor(name="AutoTimer", description= _("add AutoTimer..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc = movielist),
+               PluginDescriptor(name=_("add AutoTimer..."), where = PluginDescriptor.WHERE_EVENTINFO, fnc = eventinfo),
        ]
        if config.plugins.autotimer.show_in_extensionsmenu.value:
                l.append(extDescriptor)