diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 16 | ||||
| -rw-r--r-- | lib/python/Components/UsageConfig.py | 14 | ||||
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 1 |
3 files changed, 22 insertions, 9 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index d74ad258..b36dc4a2 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -55,18 +55,18 @@ def InitAVSwitch(): iAVSwitch = AVSwitch() def setColorFormat(configElement): - iAVSwitch.setColorFormat(configElement.value); + iAVSwitch.setColorFormat(configElement.value) def setAspectRatio(configElement): - iAVSwitch.setAspectRatio(configElement.value); + iAVSwitch.setAspectRatio(configElement.value) def setSystem(configElement): - iAVSwitch.setSystem(configElement.value); + iAVSwitch.setSystem(configElement.value) def setWSS(configElement): - iAVSwitch.setWSS(configElement.value); + iAVSwitch.setWSS(configElement.value) # this will call the "setup-val" initial - config.av.colorformat.addNotifier(setColorFormat); - config.av.aspectratio.addNotifier(setAspectRatio); - config.av.tvsystem.addNotifier(setSystem); - config.av.wss.addNotifier(setWSS); + config.av.colorformat.addNotifier(setColorFormat) + config.av.aspectratio.addNotifier(setAspectRatio) + config.av.tvsystem.addNotifier(setSystem) + config.av.wss.addNotifier(setWSS) iAVSwitch.setInput("ENCODER") # init on startup
\ No newline at end of file diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 5646a329..027dc3ff 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -2,7 +2,19 @@ from config import * import os from enigma import * +from Screens.ChannelSelection import USE_MULTIBOUQUETS +global USE_MULTIBOUQUETS + def InitUsageConfig(): config.usage = ConfigSubsection(); config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ) - config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
\ No newline at end of file + config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ) + config.usage.multibouquet = configElement("config.usage.multibouquet", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) ) + + def setMultiBouquet(configElement): + if currentConfigSelectionElement(configElement) == "no": + USE_MULTIBOUQUETS = False + else: + USE_MULTIBOUQUETS = True + + config.usage.multibouquet.addNotifier(setMultiBouquet);
\ No newline at end of file diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 3f853843..a5b6e034 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -560,6 +560,7 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit): self.session.nav.playService(lastservice) def onShow(self): + self.setTvMode() ref = self.session.nav.getCurrentlyPlayingServiceReference() if ref is not None and ref.valid() and ref.getPath() == "": self.servicelist.setPlayableIgnoreService(ref) |
