aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-05-28 17:17:57 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-05-28 17:17:57 +0000
commita11730521d4961659036039c9462e09541c3facd (patch)
treed5fe17e0dc2d2b07ddf87717bc458a2b1e281097 /lib/python/Plugins/Extensions
parent89e789bb466ba6fdb5b7698dfdc6ab82d6014731 (diff)
downloadenigma2-a11730521d4961659036039c9462e09541c3facd.tar.gz
enigma2-a11730521d4961659036039c9462e09541c3facd.zip
Allow playing DVD structure from arbitrary directories
Diffstat (limited to 'lib/python/Plugins/Extensions')
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/plugin.py5
1 files changed, 5 insertions, 0 deletions
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)