X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f09c607ad3904b0adfe65a3f4519d79861711d4b..56bd29b373d2de1a98ae7d41daa598e676a64088:/lib/python/Plugins/Extensions/SimpleRSS/plugin.py diff --git a/lib/python/Plugins/Extensions/SimpleRSS/plugin.py b/lib/python/Plugins/Extensions/SimpleRSS/plugin.py index b5218358..8cc050f1 100644 --- a/lib/python/Plugins/Extensions/SimpleRSS/plugin.py +++ b/lib/python/Plugins/Extensions/SimpleRSS/plugin.py @@ -139,7 +139,7 @@ class RSSPoller: def __init__(self): self.poll_timer = eTimer() - self.poll_timer.timeout.get().append(self.poll) + self.poll_timer.callback.append(self.poll) self.poll_timer.start(0, 1) self.last_links = Set() self.dialog = None @@ -231,7 +231,7 @@ class RSSPoller: self.d = getPage(config.simpleRSS.hostname.value).addCallback(self._gotPage).addErrback(self.error) def shutdown(self): - self.poll_timer.timeout.get().remove(self.poll) + self.poll_timer.callback.remove(self.poll) self.poll_timer = None def main(session, **kwargs): @@ -269,4 +269,4 @@ def showCurrent(session, **kwargs): def Plugins(**kwargs): return [ PluginDescriptor(name="RSS Reader", description="A (really) simple RSS reader", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main), PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart), - PluginDescriptor(name="View RSS", description="Let's you view current RSS entries", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=showCurrent) ] + PluginDescriptor(name="View RSS", description="Lets you view current RSS entries", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=showCurrent) ]