dont crash when press ok at the first line in filelist
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 25 Jun 2008 16:42:58 +0000 (16:42 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 25 Jun 2008 16:42:58 +0000 (16:42 +0000)
lib/python/Plugins/Extensions/DVDPlayer/plugin.py

index 57706faf9337f2ee16753a8ea8365caf8373e0dd..6a69de4222d4ee0bf7a0adfb84ccd8a9c9be454b 100644 (file)
@@ -56,8 +56,7 @@ class FileBrowser(Screen):
                                self.close(filename[0:-9])
                if self["filelist"].canDescent(): # isDir
                        self["filelist"].descent()
                                self.close(filename[0:-9])
                if self["filelist"].canDescent(): # isDir
                        self["filelist"].descent()
-                       pathname = self["filelist"].getCurrentDirectory()
-                       print self["filelist"].getFilename()
+                       pathname = self["filelist"].getCurrentDirectory() or ""
                        if fileExists(pathname+"VIDEO_TS.IFO"):
                                print "dvd structure found, trying to open..."
                                self.close(pathname)
                        if fileExists(pathname+"VIDEO_TS.IFO"):
                                print "dvd structure found, trying to open..."
                                self.close(pathname)