add lcd
[enigma2.git] / lib / python / Components / ServiceName.py
index bb11616..c6dcbb7 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,15 @@ class ServiceName(PerServiceDisplay):
                        })
 
        def newService(self):
-               info = iServiceInformationPtr()
-               service = self.navcore.getCurrentService(service)
+               service = self.navcore.getCurrentService()
+               
+               print service
                
-               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:
+                               self.setText(info.getName())
+                               setLCD(info.getName())
        
        def stopEvent(self):
                        self.setText("");