- add pause/seek/resume functions to filepush
[enigma2.git] / ServiceReference.py
index c4c2f467ef93ca9a6114e686708327a5aa35ce9a..25181863c1307b638f18620aad99a75b226fc165 100644 (file)
@@ -10,17 +10,14 @@ class ServiceReference(eServiceReference):
                self.ref = ref
 
        def getStaticServiceInformation(self):
-               info = iStaticServiceInformationPtr()
-               if NavigationInstance.instance.ServiceHandler.info(self.ref, info):
-                       info = None
-               return info
+               return NavigationInstance.instance.ServiceHandler.info(self.ref)
        
        def __str__(self):
                return self.ref.toString()
        
        def getServiceName(self):
                info = self.getStaticServiceInformation()
-               if not info:
+               if info is None:
                        return None
                
                return info.getName(self.ref)