ScanSetup - Predefined transponder - added system option (dvb-t/t2) for scan
authorims <ims21@users.sourceforge.net>
Fri, 10 Apr 2015 21:01:54 +0000 (23:01 +0200)
committerErik Slagter <erik@openpli.org>
Sat, 11 Apr 2015 07:36:35 +0000 (09:36 +0200)
Signed-off-by: Erik Slagter <erik@openpli.org>

lib/python/Screens/ScanSetup.py

index d624a53..d891b74 100644 (file)
@@ -465,6 +465,11 @@ class ScanSetup(ConfigListScreen, Screen, CableTransponderSearchSupport):
                                if self.scan_ter.system.value == eDVBFrontendParametersTerrestrial.System_DVB_T2:
                                        self.list.append(getConfigListEntry(_('PLP ID'), self.scan_ter.plp_id))
                        elif self.scan_typeterrestrial.value == "predefined_transponder":
+                               if nim.isCompatible("DVB-T2"):
+                                       self.systemEntry = getConfigListEntry(_('System'), self.scan_ter.system)
+                                       self.list.append(self.systemEntry)
+                               else:
+                                       self.scan_ter.system.value = eDVBFrontendParametersTerrestrial.System_DVB_T
                                self.TerrestrialRegion = self.terrestrial_nims_regions[index_to_scan]
                                self.TerrestrialRegionEntry = getConfigListEntry(_('Region'), self.TerrestrialRegion)
                                self.list.append(self.TerrestrialRegionEntry)
@@ -949,7 +954,7 @@ class ScanSetup(ConfigListScreen, Screen, CableTransponderSearchSupport):
                                        tps = nimmanager.getTranspondersTerrestrial(region)
                                        if len(tps) and len(tps) > self.TerrestrialTransponders.index :
                                                tp = tps[self.TerrestrialTransponders.index]
-                                               tlist.append(buildTerTransponder(tp[1], tp[9], tp[2], tp[4], tp[5], tp[3], tp[7], tp[6], tp[8], tp[10], tp[11]))
+                                               tlist.append(buildTerTransponder(tp[1], tp[9], tp[2], tp[4], tp[5], tp[3], tp[7], tp[6], tp[8], self.scan_ter.system.value, tp[11]))
                                removeAll = False
                        elif self.scan_typeterrestrial.value == "complete":
                                getInitialTerrestrialTransponderList(tlist, self.TerrestrialRegion.value)