aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-11-08 10:56:00 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-11-08 10:56:00 +0100
commit5fdd7a8c7ad6c371cd1344898f68e1980e2a94b9 (patch)
tree95e14a1c3e3e3c8644f5dd636bbbda88506d34d3 /lib/python/Components
parent4e8e33fafaf71b55b71fb6762baddfc0c7a38225 (diff)
parent406b024501ad0bf0473d08b345de5e94c370804b (diff)
downloadenigma2-5fdd7a8c7ad6c371cd1344898f68e1980e2a94b9.tar.gz
enigma2-5fdd7a8c7ad6c371cd1344898f68e1980e2a94b9.zip
Merge branch 'bug_258_sorting_of_configsatlist'
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/NimManager.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 8d6cff16..05204a74 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -554,6 +554,13 @@ class NimManager:
def getSatDescription(self, pos):
return self.satellites[pos]
+ def sortFunc(self, x):
+ orbpos = x[0]
+ if orbpos > 1800:
+ return orbpos - 3600
+ else:
+ return orbpos + 1800
+
def readTransponders(self):
# read initial networks from file. we only read files which we are interested in,
# which means only these where a compatible tuner exists.
@@ -565,7 +572,7 @@ class NimManager:
if self.hasNimType("DVB-S"):
print "Reading satellites.xml"
db.readSatellites(self.satList, self.satellites, self.transponders)
- self.satList.sort(key = lambda x: x[0]) # sort by orbpos
+ self.satList.sort(key = self.sortFunc) # sort by orbpos
#print "SATLIST", self.satList
#print "SATS", self.satellites
#print "TRANSPONDERS", self.transponders