diff --git a/simplerss/src/plugin.py b/simplerss/src/plugin.py index 499106414..8ea4f73d7 100644 --- a/simplerss/src/plugin.py +++ b/simplerss/src/plugin.py @@ -105,6 +105,7 @@ def main(session, **kwargs): # Main Function else: # Show Setup otherwise session.openWithCallback(closed, RSS_Setup, rssPoller) # Plugin window has been closed + def closed(): # If SimpleRSS should not run in Background: shutdown if not (config.plugins.simpleRSS.autostart.value or config.plugins.simpleRSS.keep_running.value): global rssPoller # Get Global rssPoller-Object @@ -112,6 +113,7 @@ def closed(): # If SimpleRSS should not run in Background: shutdown rssPoller.shutdown() rssPoller = None + def autostart(reason, **kwargs): # Autostart global rssPoller, tickerView if "session" in kwargs: @@ -188,6 +190,7 @@ class RSS_TickerView(Screen): Format:%H:%M """ + def __init__(self, session): oldpos = search(r' """ + def __init__(self, session, rssPoller=None): self.session = session if RESOLUTION == "HD": @@ -445,6 +449,7 @@ class RSS_Summary(Screen): WithSeconds """ + def __init__(self, session, parent): self.session = session Screen.__init__(self, session, parent) @@ -518,6 +523,7 @@ class RSS_EntryView(RSSBaseView): # Shows a RSS Item """ + def __init__(self, session, data, cur_idx=None, entries=None, feedTitle="", feedLogo=""): RSSBaseView.__init__(self, session, None) self.session = session @@ -676,6 +682,7 @@ class RSS_FeedView(RSSBaseView): # Shows a RSS-Feed """ + def __init__(self, session, feed=None, newItems=False, rssPoller=None, parent=None, ident=None): # structure of feed.history: ["titletext", "homepage-URL", "summarytext", "picture-URL"] RSSBaseView.__init__(self, session, rssPoller) @@ -912,6 +919,7 @@ class RSS_Overview(RSSBaseView): # Shows an Overview over all RSS-Feeds known t """ + def __init__(self, session, poller): self.session = session RSSBaseView.__init__(self, session, poller)