- exclusive_satellites = [0,0]
- print "exclusive satellites", exclusive_satellites
- two_sat_tuners = True
- else:
- two_sat_tuners = False
-
- for (x, c) in self.list[1:]:
- slotid = c.nim_index
- print "Scan Tuner", slotid, "-", c.value
- if c.value:
- scanPossible = False
- trustNit = False
- tlist = [ ]
- if nimmanager.getNimType(slotid) == nimmanager.nimType["DVB-S"]:
- print "is sat"
- if two_sat_tuners:
- if slotid > 0:
- idx = exclusive_satellites[0]+1
- else:
- idx = 0
- exclusive_nim_sats = exclusive_satellites[idx+1:idx+1+exclusive_satellites[idx]]
- print "exclusive_nim_sats", exclusive_nim_sats
- SatList = nimmanager.getSatListForNim(slotid)
- for sat in SatList:
- if not two_sat_tuners or (sat[0] in exclusive_nim_sats or slotid == 0):
- scanPossible = True
- print sat
- getInitialTransponderList(tlist, sat[0])
- elif nimmanager.getNimType(slotid) == nimmanager.nimType["DVB-C"]:
- scanPossible = True
- getInitialCableTransponderList(tlist, nimmanager.getCableDescription(slotid))
- if nimmanager.getCableTrustNit(slotid):
- trustNit = True
- elif nimmanager.getNimType(slotid) == nimmanager.nimType["DVB-T"]:
- scanPossible = True
- getInitialTerrestrialTransponderList(tlist, nimmanager.getTerrestrialDescription(slotid))
- else:
- assert False
-
- if scanPossible:
- flags=eComponentScan.scanNetworkSearch
- if trustNit:
- flags |= eComponentScan.clearToScanOnFirstNIT
- tmp = self.scan_clearallservices.value
- if tmp == "yes":
- flags |= eComponentScan.scanRemoveServices
- elif tmp == "yes_hold_feeds":
- flags |= eComponentScan.scanRemoveServices
- flags |= eComponentScan.scanDontRemoveFeeds
- scanList.append({"transponders": tlist, "feid": slotid, "flags": flags})
+ assert False
+
+ flags=eComponentScan.scanNetworkSearch
+ if trustNit:
+ flags |= eComponentScan.clearToScanOnFirstNIT
+ tmp = self.scan_clearallservices.value
+ if tmp == "yes":
+ flags |= eComponentScan.scanRemoveServices
+ elif tmp == "yes_hold_feeds":
+ flags |= eComponentScan.scanRemoveServices
+ flags |= eComponentScan.scanDontRemoveFeeds
+ scanList.append({"transponders": tlist, "feid": nim.slot, "flags": flags})
+