X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67b53c1cb06988394c35a6e965c99b72b67fe1be..4ea4f33a6a0382249996c4dae4db31ae2e059dbb:/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 980fe5d5..608d4720 100644 --- a/lib/python/Plugins/Extensions/SimpleRSS/plugin.py +++ b/lib/python/Plugins/Extensions/SimpleRSS/plugin.py @@ -19,7 +19,8 @@ from sets import Set my_global_session = None -urls = ["http://www.heise.de/newsticker/heise.rdf", "http://rss.slashdot.org/Slashdot/slashdot/to"] +#urls = ["http://www.heise.de/newsticker/heise.rdf", "http://rss.slashdot.org/Slashdot/slashdot/to"] +urls = ["http://mastermaq.podcastspot.com/episodes/rss/mpg1"] from Components.config import config, ConfigSubsection, ConfigSelection, getConfigListEntry from Components.ConfigList import ConfigListScreen @@ -138,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 @@ -230,10 +231,10 @@ 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): +def main(session, **kwargs): print "session.open" session.open(SimpleRSS) print "done"