diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-09-18 11:14:06 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-09-18 11:14:06 +0000 |
| commit | a072f55b74af5b939e6c08b6fcef2d2d5473b0d6 (patch) | |
| tree | a8f7ac70bc281510be07c918fc0d1be3e1741615 /lib/python/Plugins/Extensions/DVDPlayer/plugin.py | |
| parent | bf379ed2ce93bc09432f3b5f323abaacbe1237ce (diff) | |
| download | enigma2-a072f55b74af5b939e6c08b6fcef2d2d5473b0d6.tar.gz enigma2-a072f55b74af5b939e6c08b6fcef2d2d5473b0d6.zip | |
fixes
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDPlayer/plugin.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 0d1f65fb..7159a6cd 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -429,22 +429,24 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP def __osdAudioInfoAvail(self): audioTuple = self.service.info().getInfoObject(iServiceInformation.sUser+6) print "AudioInfoAvail ", repr(audioTuple) - audioString = "%d: %s (%s)" % (audioTuple[0],audioTuple[1],audioTuple[2]) - self["audioLabel"].setText(audioString) - if audioTuple != self.last_audioTuple and not self.in_menu: - self.doShow() - self.last_audioTuple = audioTuple + if audioTuple: + audioString = "%d: %s (%s)" % (audioTuple[0],audioTuple[1],audioTuple[2]) + self["audioLabel"].setText(audioString) + if audioTuple != self.last_audioTuple and not self.in_menu: + self.doShow() + self.last_audioTuple = audioTuple def __osdSubtitleInfoAvail(self): subtitleTuple = self.service.info().getInfoObject(iServiceInformation.sUser+7) print "SubtitleInfoAvail ", repr(subtitleTuple) - subtitleString = "" - if subtitleTuple[0] is not 0: - subtitleString = "%d: %s" % (subtitleTuple[0],subtitleTuple[1]) - self["subtitleLabel"].setText(subtitleString) - if subtitleTuple != self.last_subtitleTuple and not self.in_menu: - self.doShow() - self.last_subtitleTuple = subtitleTuple + if subtitleTuple: + subtitleString = "" + if subtitleTuple[0] is not 0: + subtitleString = "%d: %s" % (subtitleTuple[0],subtitleTuple[1]) + self["subtitleLabel"].setText(subtitleString) + if subtitleTuple != self.last_subtitleTuple and not self.in_menu: + self.doShow() + self.last_subtitleTuple = subtitleTuple def __chapterUpdated(self): self.currentChapter = self.service.info().getInfo(iServiceInformation.sCurrentChapter) |
