From a11730521d4961659036039c9462e09541c3facd Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Wed, 28 May 2008 17:17:57 +0000 Subject: [PATCH] Allow playing DVD structure from arbitrary directories --- lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 4c66a5c4..101166bb 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -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) -- 2.30.2