diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-11 21:14:28 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-11 21:14:28 +0000 |
| commit | 56e40b4b0f436dc7d9214fd3a96a621c15bd9f10 (patch) | |
| tree | 1326518b5de01adee7ed3f9550e0168b8cd20003 /lib/python/Components | |
| parent | 47242ac03ffc647d2a27a27823c817d4f96ddad6 (diff) | |
| download | enigma2-56e40b4b0f436dc7d9214fd3a96a621c15bd9f10.tar.gz enigma2-56e40b4b0f436dc7d9214fd3a96a621c15bd9f10.zip | |
implement and re-enable default ac3 option
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 2 | ||||
| -rw-r--r-- | lib/python/Components/config.py | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index 525ecb96..19fccf54 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -84,7 +84,7 @@ def InitAVSwitch(): #config.av.tvsystem = configElement("config.av.tvsystem", configSelection, 0, ("PAL", "PAL + PAL60", "Multi", "NTSC") ) config.av.tvsystem = configElement("config.av.tvsystem", configSelection, 0, (("pal", _("PAL")), ("ntsc", _("NTSC"))) ) config.av.wss = configElement("config.av.wss", configSelection, 0, (("off", _("Off")), ("on", _("On"))) ) -# config.av.defaultac3 = configElement("config.av.defaultac3", configSelection, 1, (("enable", _("Enable")), ("disable", _("Disable")))) + config.av.defaultac3 = configElement("config.av.defaultac3", configSelection, 1, (("enable", _("Enable")), ("disable", _("Disable")))) config.av.vcrswitch = configElement("config.av.vcrswitch", configSelection, 1, (("enable", _("Enable")), ("disable", _("Disable")))) iAVSwitch = AVSwitch() diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 7c7acc34..42172021 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -38,6 +38,18 @@ class configFile: else: self.configElements[key] = value + def getResolvedKey(self, key): + str = self.configElements[key] + if len(str): + pos = str.find('*') + if pos != -1: + str = str[pos+1:] + pos = str.find('*') + if pos != -1: + return str[:pos] + return str + return None + def save(self): if self.changed == 0: #no changes, so no write to disk needed return |
