fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / python / Components / ServiceName.py
index c96b79f..a9c0930 100644 (file)
@@ -1,6 +1,7 @@
 from PerServiceDisplay import *
 
-from enigma import pNavigation, iServiceInformationPtr
+#from enigma import pNavigation, iServiceInformationPtr
+from enigma import *
 
 class ServiceName(PerServiceDisplay):
        def __init__(self, navcore):
@@ -11,12 +12,14 @@ class ServiceName(PerServiceDisplay):
                        })
 
        def newService(self):
-               info = iServiceInformationPtr()
                service = self.navcore.getCurrentService()
                
-               if service != None:
-                       if not service.info(info):
-                               self.setText(info.getName())
+               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("");