fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / python / Components / ServiceName.py
index bb11616..a9c0930 100644 (file)
@@ -1,5 +1,7 @@
 from PerServiceDisplay import *
-from enigma import pNavigation
+
+#from enigma import pNavigation, iServiceInformationPtr
+from enigma import *
 
 class ServiceName(PerServiceDisplay):
        def __init__(self, navcore):
@@ -10,12 +12,14 @@ class ServiceName(PerServiceDisplay):
                        })
 
        def newService(self):
-               info = iServiceInformationPtr()
-               service = self.navcore.getCurrentService(service)
+               service = self.navcore.getCurrentService()
                
-               if service != None:
-                       if not service.info(info):
-                               self.setText("no name known, but it should be here :)")
+               if service is not None:
+                       info = service.info()
+                       if info is not None:
+                               name = info.getName()
+                               self.setText(name)
+                               setLCD(name)
        
        def stopEvent(self):
                        self.setText("");