aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ScanSetup.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-03-30 10:43:55 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-03-30 10:43:55 +0000
commitcb22e9b244a2f9e54dba44b818395216585190bc (patch)
tree58c7d053d019536a29099a30b091454e1b0c3b80 /lib/python/Screens/ScanSetup.py
parent5c6290ef3ddec2f76319c8642cc57e7e1c4561b1 (diff)
downloadenigma2-cb22e9b244a2f9e54dba44b818395216585190bc.tar.gz
enigma2-cb22e9b244a2f9e54dba44b818395216585190bc.zip
in automatic scan do no more scan satellites twice when not needed (for advanced sat configurations)
Diffstat (limited to 'lib/python/Screens/ScanSetup.py')
-rw-r--r--lib/python/Screens/ScanSetup.py25
1 files changed, 21 insertions, 4 deletions
diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py
index 0229d5e8..8f02ab3a 100644
--- a/lib/python/Screens/ScanSetup.py
+++ b/lib/python/Screens/ScanSetup.py
@@ -376,15 +376,32 @@ class ScanSimple(Screen):
def keyGo(self):
scanList = []
+ if nimmanager.getNimType(0) == nimmanager.nimType["DVB-S"] and nimmanager.getNimType(0) == nimmanager.getNimType(1):
+ sec = eDVBSatelliteEquipmentControl.getInstance()
+ if sec is not None:
+ exclusive_satellites = sec.get_exclusive_satellites(0,1)
+ else:
+ exclusive_satellites = [0,0]
+ else:
+ exclusive_satellites = [0,0]
+ print "exclusive satellites", exclusive_satellites
for x in self.list:
slotid = x[1].parent.configPath
- print "configpath:", x[1].parent.configPath, "-", currentConfigSelectionElement(x[1].parent)
+ print "Scan Tuner", slotid, "-", currentConfigSelectionElement(x[1].parent)
if currentConfigSelectionElement(x[1].parent) == "yes":
tlist = [ ]
if nimmanager.getNimType(x[1].parent.configPath) == nimmanager.nimType["DVB-S"]:
+ 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:
- getInitialTransponderList(tlist, sat[1])
+ if sat[1] in exclusive_nim_sats or slotid == 0:
+ print sat
+ getInitialTransponderList(tlist, sat[1])
elif nimmanager.getNimType(x[1].parent.configPath) == nimmanager.nimType["DVB-C"]:
getInitialCableTransponderList(tlist, nimmanager.getCableDescription(slotid))
scanList.append({"transponders": tlist, "feid": slotid, "flags": eComponentScan.scanNetworkSearch})
@@ -416,8 +433,8 @@ class ScanSimple(Screen):
return False
sec = eDVBSatelliteEquipmentControl.getInstance()
if sec is not None:
- different_satellites = sec.get_different_satellites(0,1)
- if different_satellites is None:# or not len(different_satellites):
+ exclusive_satellites = sec.get_exclusive_satellites(0,1)
+ if len(exclusive_satellites) == 0:
return False
return True