From ae602961330ac8eab5312a7f8dd991f45e211709 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 11 Oct 2006 00:18:04 +0000 Subject: [PATCH] fix dvb-t scan, config --- lib/python/Components/NimManager.py | 10 ++++++---- 1 file 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: -- 2.30.2