From 0a97ffcb515605aea8ced414b65dbaed4ce0cfae Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 22 Jul 2008 18:26:34 +0000 Subject: replace some sUser with more readable code --- lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/python/Plugins/Extensions/DVDPlayer/plugin.py') diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 8e9031d7..f433ce6b 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -424,14 +424,14 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP self.doShow() def __chapterUpdated(self): - self.currentChapter = self.service.info().getInfo(iServiceInformation.sUser+8) - self.totalChapters = self.service.info().getInfo(iServiceInformation.sUser+80) + self.currentChapter = self.service.info().getInfo(iServiceInformation.sCurrentChapter) + self.totalChapters = self.service.info().getInfo(iServiceInformation.sTotalChapters) self.setChapterLabel() print "__chapterUpdated: %d/%d" % (self.currentChapter, self.totalChapters) def __titleUpdated(self): - self.currentTitle = self.service.info().getInfo(iServiceInformation.sUser+9) - self.totalTitles = self.service.info().getInfo(iServiceInformation.sUser+90) + self.currentTitle = self.service.info().getInfo(iServiceInformation.sCurrentTitle) + self.totalTitles = self.service.info().getInfo(iServiceInformation.sTotalTitles) self.setChapterLabel() print "__titleUpdated: %d/%d" % (self.currentTitle, self.totalTitles) if not self.in_menu: -- cgit v1.2.3