- global lastpath
- filename = self["filelist"].getFilename()
- if filename is not None:
- lastpath = filename[0:filename.rfind("/")]
- if filename.upper().endswith("VIDEO_TS/"):
- print "dvd structure found, trying to open..."
- self.close(filename[0:-9])
- if self["filelist"].canDescent(): # isDir
- self["filelist"].descent()
- pathname = self["filelist"].getCurrentDirectory() or ""
- if fileExists(pathname+"VIDEO_TS.IFO"):
- print "dvd structure found, trying to open..."
- self.close(pathname)