Allow playing DVD structure from arbitrary directories
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 28 May 2008 17:17:57 +0000 (17:17 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 28 May 2008 17:17:57 +0000 (17:17 +0000)
lib/python/Plugins/Extensions/DVDPlayer/plugin.py

index 4c66a5c..101166b 100644 (file)
@@ -56,6 +56,11 @@ class FileBrowser(Screen):
                                self.close(filename[0:-9])
                if self["filelist"].canDescent(): # isDir
                        self["filelist"].descent()
+                       pathname = self["filelist"].getCurrentDirectory()
+                       print self["filelist"].getFilename()
+                       if fileExists(pathname+"VIDEO_TS.IFO"):
+                               print "dvd structure found, trying to open..."
+                               self.close(pathname)
                else:
                        self.close(filename)