Skip to content

Commit

Permalink
PEP8 double aggressive E301 ~ E306
Browse files Browse the repository at this point in the history
  • Loading branch information
enigma2-plugins python bot committed Sep 30, 2024
1 parent 6892a57 commit 9402a50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions simplerss/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,15 @@ 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
if rssPoller:
rssPoller.shutdown()
rssPoller = None


def autostart(reason, **kwargs): # Autostart
global rssPoller, tickerView
if "session" in kwargs:
Expand Down Expand Up @@ -188,6 +190,7 @@ class RSS_TickerView(Screen):
<convert type="ClockToText">Format:%H:%M</convert>
</widget>
</screen>"""

def __init__(self, session):
oldpos = search(r'<screen name="(.*?)".*?position="(.*?)"', self.skin)
if oldpos:
Expand Down Expand Up @@ -268,6 +271,7 @@ class RSS_Setup(ConfigListScreen, Screen): # Setup for SimpleRSS, quick-edit fo
<widget source="key_blue" render="Label" position="1175,949" size="270,57" zPosition="1" valign="center" font="Regular;30" halign="left" foregroundColor="#00b3b3b3" backgroundColor="#1A0F0F0F" transparent="1" />
<eLabel text="Autoren: [email protected], Mr.Servo, Skinned by stein17" position="1260,780" size="534,75" zPosition="1" valign="center" font="Regular;30" halign="center" foregroundColor="#00666666" backgroundColor="#1A0F0F0F" transparent="1" />
</screen>"""

def __init__(self, session, rssPoller=None):
self.session = session
if RESOLUTION == "HD":
Expand Down Expand Up @@ -445,6 +449,7 @@ class RSS_Summary(Screen):
<convert type="ClockToText">WithSeconds</convert>
</widget>
</screen>"""

def __init__(self, session, parent):
self.session = session
Screen.__init__(self, session, parent)
Expand Down Expand Up @@ -518,6 +523,7 @@ class RSS_EntryView(RSSBaseView): # Shows a RSS Item
</widget>
<widget name="content" position="525,225" size="1335,780" font="Regular;33" scrollbarMode="showOnDemand" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="0" />
</screen>"""

def __init__(self, session, data, cur_idx=None, entries=None, feedTitle="", feedLogo=""):
RSSBaseView.__init__(self, session, None)
self.session = session
Expand Down Expand Up @@ -676,6 +682,7 @@ class RSS_FeedView(RSSBaseView): # Shows a RSS-Feed
</widget>
<widget source="summary" render="Label" position="1215,225" size="615,705" font="Regular;31" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
</screen>"""

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)
Expand Down Expand Up @@ -912,6 +919,7 @@ class RSS_Overview(RSSBaseView): # Shows an Overview over all RSS-Feeds known t
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/SimpleRSS/icons/key_menu_fHD.png" position="1485,949" size="80,57" alphatest="blend" />
<eLabel text="Settings" position="1570,949" size="350,57" zPosition="1" valign="center" font="Regular;30" halign="left" foregroundColor="#00b3b3b3" backgroundColor="#1A0F0F0F" transparent="1" />
</screen>"""

def __init__(self, session, poller):
self.session = session
RSSBaseView.__init__(self, session, poller)
Expand Down

0 comments on commit 9402a50

Please sign in to comment.