diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-08 10:55:52 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-11-08 10:55:52 +0100 |
| commit | ab40b0a5518886c7aa94458425bdec90d5430ee9 (patch) | |
| tree | a697c62fe4e583300eecfd304f4da00867a9cc21 /lib/python/Components/NimManager.py | |
| parent | f3d145e1d246e25b3fda5796216552ccbbdde1f0 (diff) | |
| parent | 406b024501ad0bf0473d08b345de5e94c370804b (diff) | |
| download | enigma2-ab40b0a5518886c7aa94458425bdec90d5430ee9.tar.gz enigma2-ab40b0a5518886c7aa94458425bdec90d5430ee9.zip | |
Merge branch 'bug_258_sorting_of_configsatlist' into experimental
Diffstat (limited to 'lib/python/Components/NimManager.py')
| -rw-r--r-- | lib/python/Components/NimManager.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 5ca80ce7..78e17bb7 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 |
