X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8c614fe20e16f69aaf38440d2d132c10e86f820c..e4377b927b5fbbc01ff6f9e62b9ca5f7343d033f:/ServiceReference.py diff --git a/ServiceReference.py b/ServiceReference.py index 9dd316f2..4907fa28 100644 --- a/ServiceReference.py +++ b/ServiceReference.py @@ -1,7 +1,4 @@ - -from enigma import * - -import NavigationInstance +from enigma import eServiceReference, eServiceCenter class ServiceReference(eServiceReference): def __init__(self, ref): @@ -13,7 +10,7 @@ class ServiceReference(eServiceReference): def __str__(self): return self.ref.toString() - + def getServiceName(self): info = self.info() return info and info.getName(self.ref) or "" @@ -23,3 +20,16 @@ class ServiceReference(eServiceReference): def list(self): return self.serviceHandler.list(self.ref) + + def getType(self): + return self.ref.type + + def getPath(self): + return self.ref.getPath() + + def getFlags(self): + return self.ref.flags + + def isRecordable(self): + ref = self.ref + return ref.flags & eServiceReference.isGroup or (ref.type == eServiceReference.idDVB and ref.getPath() == "") \ No newline at end of file