fix satellites positions in the west
[enigma2.git] / lib / python / Components / NimManager.py
index 933ebcf76b898ae34072528f5c77de44251a02a8..3bc47ec366d380c01f6aba0d0a04ba99db1f49e2 100644 (file)
@@ -127,7 +127,11 @@ class NimManager:
                def startElement(self, name, attrs):
                        if (name == "sat"):
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
-                               tpos = attrs.get('position',"")
+                               tpos = int(attrs.get('position',""))
+                               if tpos < 0:
+                                       print "negative"
+                                       tpos = 3600 + tpos
+                               print "[NimManager.py] tpos:", tpos
                                tname = attrs.get('name',"")
                                self.satellites[tpos] = tname
                                self.satList.append( (tname, tpos) )