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)
)
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
# 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
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)