diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-12 18:42:54 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-12 18:42:54 +0000 |
| commit | 99e6feec1546d5fa2ff8e5cdfdf84438db4281b3 (patch) | |
| tree | 3d52309c89f8345fcc8e77d0b0a0117cc7dac00c /lib/python | |
| parent | 233d539468f8a5b89782e9e92be224fcd7c21ab6 (diff) | |
| download | enigma2-99e6feec1546d5fa2ff8e5cdfdf84438db4281b3.tar.gz enigma2-99e6feec1546d5fa2ff8e5cdfdf84438db4281b3.zip | |
add possibility to set tuner priority for alternative services in Customize
menu (just with expert usage level)
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/UsageConfig.py | 14 | ||||
| -rw-r--r-- | lib/python/enigma_python.i | 8 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index b3658018..71b0b60c 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -1,5 +1,5 @@ from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger -from enigma import Misc_Options +from enigma import Misc_Options, setTunerTypePriorityOrder; import os def InitUsageConfig(): @@ -38,6 +38,18 @@ def InitUsageConfig(): ("show_menu", _("show shutdown menu")), ("shutdown", _("immediate shutdown")) ] ) + config.usage.alternatives_priority = ConfigSelection(default = "0", choices = [ + ("0", "DVB-S/-C/-T"), + ("1", "DVB-S/-T/-C"), + ("2", "DVB-C/-S/-T"), + ("3", "DVB-C/-T/-S"), + ("4", "DVB-T/-C/-S"), + ("5", "DVB-T/-S/-C") ]) + + def TunerTypePriorityOrderChanged(configElement): + setTunerTypePriorityOrder(int(configElement.value)) + config.usage.alternatives_priority.addNotifier(TunerTypePriorityOrderChanged) + def setHDDStandby(configElement): os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc") config.usage.hdd_standby.addNotifier(setHDDStandby) diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index bc2d5503..9ef269b2 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -297,6 +297,14 @@ PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, } %} +void setTunerTypePriorityOrder(int); +%{ +void setTunerTypePriorityOrder(int order) +{ + eDVBFrontend::setTypePriorityOrder(order); +} +%} + /************** temp *****************/ /* need a better place for this, i agree. */ |
