Skip to content

Commit

Permalink
Optimize PLi changes for ATV
Browse files Browse the repository at this point in the history
  • Loading branch information
Schimmelreiter committed May 2, 2019
1 parent 504337c commit 3e49a25
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/python/Screens/SoftcamSetup.py
Expand Up @@ -92,11 +92,11 @@ def setEcmInfo(self):

def ppanelShortcut(self):
ppanelFileName = '/etc/ppanels/' + self.softcams.value + '.xml'
if "oscam" in self.softcams.value.lower() and os.path.isfile('/usr/lib/enigma2/python/Plugins/Extensions/OscamStatus/plugin.pyo'):
from Plugins.Extensions.OscamStatus.plugin import OscamStatus
self.session.open(OscamStatus)
elif "cccam" in self.softcams.value.lower() and os.path.isfile('/usr/lib/enigma2/python/Plugins/Extensions/CCcamInfo/plugin.pyo'):
from Plugins.Extensions.CCcamInfo.plugin import CCcamInfoMain
if "oscam" in self.softcams.value.lower() and os.path.isfile('/usr/lib/enigma2/python/Screens/OScamInfo.pyo'):
from Screens.OScamInfo import OscamInfoMenu
self.session.open(OscamInfoMenu)
elif "cccam" in self.softcams.value.lower() and os.path.isfile('/usr/lib/enigma2/python/Screens/CCcamInfo.pyo'):
from Screens.CCcamInfo import CCcamInfoMain
self.session.open(CCcamInfoMain)
elif os.path.isfile(ppanelFileName) and os.path.isfile('/usr/lib/enigma2/python/Plugins/Extensions/PPanel/plugin.pyo'):
from Plugins.Extensions.PPanel.ppanel import PPanel
Expand Down Expand Up @@ -164,3 +164,4 @@ def save(self):

def cancel(self):
self.close()

0 comments on commit 3e49a25

Please sign in to comment.