Skip to content

Commit

Permalink
PEP8 double aggressive E20 and E211
Browse files Browse the repository at this point in the history
  • Loading branch information
openvix-bot committed Aug 31, 2023
1 parent 09a4b60 commit fbeddcb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/python/Plugins/SystemPlugins/FastChannelChange/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
config.plugins.fccsetup.maxfcc = ConfigSelection(default=str(g_default_fcc), choices=list((str(n), str(n)) for n in range(2, g_max_fcc+1)))
config.plugins.fccsetup.zapupdown = ConfigYesNo(default=True)
config.plugins.fccsetup.history = ConfigYesNo(default=False)
config.plugins.fccsetup.priority = ConfigSelection(default="zapupdown", choices={ "zapupdown" : _("Zap Up/Down"), "historynextback" : _("History Prev/Next") })
config.plugins.fccsetup.priority = ConfigSelection(default="zapupdown", choices={"zapupdown": _("Zap Up/Down"), "historynextback": _("History Prev/Next")})
config.plugins.fccsetup.disableforrec = ConfigYesNo(default=True)

FccInstance = None
Expand Down Expand Up @@ -256,7 +256,7 @@ def getZapUpDownList(self):
serviceRefList = []
for idx in range(len(serviceList)):
sref = serviceList[idx].toString()
if (sref.split(':')[1] == '0') and self.isPlayableFCC(sref) : # remove marker
if (sref.split(':')[1] == '0') and self.isPlayableFCC(sref): # remove marker
serviceRefList.append(sref)

if curServiceRef in serviceRefList:
Expand Down Expand Up @@ -405,7 +405,7 @@ def FCCStopAllServices(self):
fccServiceList = self.fccmgr.getFCCServiceList()
for (sref, value) in fccServiceList.items():
state = value[0]
if state != 1 : # 1 : fcc_state_decoding
if state != 1: # 1 : fcc_state_decoding
self.fccmgr.stopFCCService(eServiceReference(sref))

def FCCDisableServices(self):
Expand Down Expand Up @@ -475,13 +475,13 @@ def createConfig(self):

def createSetup(self):
self.list = []
self.list.append( self.enableEntry )
self.list.append(self.enableEntry)
if self.enableEntry[1].value:
self.list.append( self.fccmaxEntry )
self.list.append( self.zapupdownEntry )
self.list.append( self.historyEntry )
self.list.append(self.fccmaxEntry)
self.list.append(self.zapupdownEntry)
self.list.append(self.historyEntry)
if self.zapupdownEntry[1].value and self.historyEntry[1].value:
self.list.append( self.priorityEntry )
self.list.append(self.priorityEntry)
self.list.append(self.recEntry)

self["config"].list = self.list
Expand Down

0 comments on commit fbeddcb

Please sign in to comment.