1 from enigma import eServiceReference, eServiceCenter
3 class ServiceReference(eServiceReference):
4 def __init__(self, ref):
5 if not isinstance(ref, eServiceReference):
6 self.ref = eServiceReference(ref or "")
9 self.serviceHandler = eServiceCenter.getInstance()
12 return self.ref.toString()
14 def getServiceName(self):
16 return info and info.getName(self.ref) or ""
19 return self.serviceHandler.info(self.ref)
22 return self.serviceHandler.list(self.ref)
28 return self.ref.getPath()
33 def isRecordable(self):
35 return ref.flags & eServiceReference.isGroup or (ref.type == eServiceReference.idDVB and ref.getPath() == "")