From: Andreas Monzner Date: Tue, 15 Apr 2008 15:38:18 +0000 (+0000) Subject: dont show infobar when a dvd menu is visible X-Git-Tag: 2.6.0~1340 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/e48e67ced346bf110740ac1051a9a0e240fdbc56?ds=sidebyside dont show infobar when a dvd menu is visible dont crash when ok is pressed in the filebrowser when the ".." entry is selected --- diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 856c7d18..bab64ce1 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -41,15 +41,14 @@ class FileBrowser(Screen): }) def ok(self): - if self["filelist"].getFilename().upper().endswith("VIDEO_TS/"): + filename = self["filelist"].getFilename() + if filename is not None and filename.upper().endswith("VIDEO_TS/"): print "dvd structure found, trying to open..." - self.close(self["filelist"].getFilename()[0:-9]) - + self.close(filename[0:-9]) elif self["filelist"].canDescent(): # isDir self["filelist"].descent() - else: - self.close(self["filelist"].getFilename()) + self.close(filename) def exit(self): self.close(None) @@ -380,13 +379,15 @@ class DVDPlayer(Screen, InfoBarNotifications, InfoBarSeek, InfoBarCueSheetSuppor audioString = self.service.info().getInfoString(iPlayableService.evUser+6) print "AudioInfoAvail "+audioString self["audioLabel"].setText(audioString) - self.doShow() + if not self.in_menu: + self.doShow() def __osdSubtitleInfoAvail(self): subtitleString = self.service.info().getInfoString(iPlayableService.evUser+7) print "SubtitleInfoAvail "+subtitleString self["subtitleLabel"].setText(subtitleString) - self.doShow() + if not self.in_menu: + self.doShow() def __chapterUpdated(self): self.currentChapter = self.service.info().getInfo(iPlayableService.evUser+8) @@ -399,7 +400,8 @@ class DVDPlayer(Screen, InfoBarNotifications, InfoBarSeek, InfoBarCueSheetSuppor self.totalTitles = self.service.info().getInfo(iPlayableService.evUser+90) self.setChapterLabel() print "__titleUpdated: %d/%d" % (self.currentTitle, self.totalTitles) - self.doShow() + if not self.in_menu: + self.doShow() #def __initializeDVDinfo(self): #self.__osdAudioInfoAvail() @@ -516,7 +518,8 @@ class DVDPlayer(Screen, InfoBarNotifications, InfoBarSeek, InfoBarCueSheetSuppor self.session.nav.playService(self.oldService) def showAfterCuesheetOperation(self): - self.show() + if not self.in_menu: + self.show() def createSummary(self): print "DVDCreateSummary"