Ejemplo n.º 1
0
 def __init__(self,
              ref,
              reftype=eServiceReference.idInvalid,
              flags=0,
              path=''):
     if reftype != eServiceReference.idInvalid:
         eServiceReference.__init__(self, reftype, flags, path)
     elif not isinstance(ref, eServiceReference):
         eServiceReference.__init__(self, ref or "")
Ejemplo n.º 2
0
 def __init__(self, serviceref, dvdStruct=False):
     eServiceReference.__init__(self, ServiceTypes.idDVD, 0,
                                serviceref.getPath())
     self.dvdStruct = dvdStruct
     if dvdStruct is True:
         self.setPath(self.getPath()[0:-1])
         self.setName(os.path.basename(self.getPath()))
         self.flags = eServiceReference.isDirectory
     else:
         self.setName(os.path.basename(os.path.splitext(self.getPath())[0]))
Ejemplo n.º 3
0
 def __init__(self, serviceref, isStruct=False):
     idx = 0
     eServiceReference.__init__(self, ServiceTypes.idDVD, 0,
                                serviceref.getPath())
     self.isStruct = isStruct
     if isStruct is True:
         self.setPath(serviceref.getPath()[0:-1])
         self.setName(os.path.basename(self.getPath()))
         self.flags = eServiceReference.isDirectory
     else:
         self.setName(
             os.path.basename(os.path.splitext(serviceref.getPath())[0]))
     self.bludisc_path = self.getPath()
Ejemplo n.º 4
0
 def __init__(self, serviceref, isStruct=False):
     idx = 0
     eServiceReference.__init__(self, ServiceTypes.idDVD, 0,
                                serviceref.getPath())
     #eServiceReference.__init__(self, 0x04, 0, "%s:%03d" % (serviceref.getPath(), idx))
     self.isStruct = isStruct
     if isStruct is True:
         # remove trailing slash
         self.setPath(serviceref.getPath()[0:-1])
         self.setName(os.path.basename(self.getPath()))
         self.flags = eServiceReference.isDirectory
     else:
         self.setName(
             os.path.basename(os.path.splitext(serviceref.getPath())[0]))
     self.bludisc_path = self.getPath()
Ejemplo n.º 5
0
def __setRef(self, serviceref):
    eServiceReference.__init__(self, serviceref)
Ejemplo n.º 6
0
 def __init__(self, file_name):
     eServiceReference.__init__(self, eServiceReference.idUser,
                                eServiceReference.flagDirectory, file_name)
Ejemplo n.º 7
0
 def __init__(self, file_name):
     eServiceReference.__init__(
         self, eServiceReference.idUser,
         ServiceFlags.flagDirectory | ServiceFlags.isMarker, file_name)