aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-11 21:41:17 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-11 21:41:17 +0000
commit02172ca65853b9f61d46c0e5e7823ee69f203b83 (patch)
tree6feebace6b67361a8bedd272c0994b385b6214c8 /lib/python/Components
parent41c1cbf33fec98ed50973390d0500fe5522d82d6 (diff)
downloadenigma2-02172ca65853b9f61d46c0e5e7823ee69f203b83.tar.gz
enigma2-02172ca65853b9f61d46c0e5e7823ee69f203b83.zip
some logic to detect useable nims for rotor plugin
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/NimManager.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 950f48fd..824f9f71 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -434,7 +434,6 @@ class NimManager:
def getTerrestrialFlags(self, nim):
return self.terrestrialsList[config.Nims[nim].terrestrial.value][1]
-
def getConfiguredSats(self):
return self.sec.getSatList()
@@ -600,6 +599,28 @@ class NimManager:
list.append(x)
return list
+ def getRotorSatListForNim(self, slotid):
+ list = []
+ if (self.getNimType(slotid) == self.nimType["DVB-S"]):
+ #print "slotid:", slotid
+
+ #print "self.satellites:", self.satList[config.Nims[slotid].diseqcA.value]
+ #print "diseqcA:", config.Nims[slotid].diseqcA.value
+ configMode = currentConfigSelectionElement(config.Nims[slotid].configMode)
+ if configMode == "simple":
+ if (config.Nims[slotid].diseqcMode.value == 4):
+ for x in self.satList:
+ list.append(x)
+ elif configMode == "advanced":
+ for x in self.satList:
+ nim = config.Nims[slotid]
+ lnbnum = nim.advanced.sat[x[1]].lnb.value
+ if lnbnum != 0:
+ lnb = nim.advanced.lnb[lnbnum]
+ if lnb.diseqcMode.value == 3: # diseqc 1.2
+ list.append(x)
+ return list
+
def nimDiseqcModeChanged(self, slotid, mode):
#print "nimDiseqcModeChanged set to " + str(mode)
pass