aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/NimManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/NimManager.py')
-rw-r--r--lib/python/Components/NimManager.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 7677a502..5b3b853f 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -1,4 +1,4 @@
-from config import config, ConfigSubsection, ConfigSelection, ConfigFloat, ConfigSatlist, ConfigYesNo, ConfigInteger, ConfigSubList, ConfigNothing, ConfigSubDict
+from config import config, ConfigSubsection, ConfigSelection, ConfigFloat, ConfigSatlist, ConfigYesNo, ConfigInteger, ConfigSubList, ConfigNothing, ConfigSubDict, ConfigOnOff
from enigma import eDVBSatelliteEquipmentControl, \
eDVBSatelliteLNBParameters as lnbParam, \
@@ -416,10 +416,10 @@ class NimManager:
return (config.Nims[nim].cabletype.value == "quick")
def getTerrestrialDescription(self, nim):
- return self.terrestrialsList[config.Nims[nim].terrestrial.value][0]
+ return self.terrestrialsList[config.Nims[nim].terrestrial.index][0]
def getTerrestrialFlags(self, nim):
- return self.terrestrialsList[config.Nims[nim].terrestrial.value][1]
+ return self.terrestrialsList[config.Nims[nim].terrestrial.index][1]
def getConfiguredSats(self):
return self.sec.getSatList()
@@ -789,8 +789,10 @@ def InitNimManager(nimmgr):
nim.cabletype = ConfigSelection(choices = [("quick", _("Quick")), ("complete", _("Complete"))])
elif slot.nimType == nimmgr.nimType["DVB-T"]:
list = []
+ n = 0
for x in nimmgr.terrestrialsList:
- list.append(x[0])
+ list.append((str(n), x[0]))
+ n += 1
nim.terrestrial = ConfigSelection(choices = list)
nim.terrestrial_5V = ConfigOnOff()
else: