aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-04-03 17:31:48 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-04-03 17:31:48 +0000
commit60cb52fca1186dbba8d096976b56af682026f0b9 (patch)
tree3be082e666ce98b8162acb734387597bfe012ec0 /lib/python/Screens
parent4c0f1d02c675df77c46d9fe3d1f8d8c810806401 (diff)
downloadenigma2-60cb52fca1186dbba8d096976b56af682026f0b9.tar.gz
enigma2-60cb52fca1186dbba8d096976b56af682026f0b9.zip
fix
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 85994203..0d571fd3 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -85,21 +85,24 @@ class InfoBarShowHide:
self.onHide.append(self.__onHide)
def __eventInfoChanged(self):
- old_begin_time = self.current_begin_time
- service = self.session.nav.getCurrentService()
- info = service and service.info()
- ptr = info and info.getEvent(0)
- self.current_begin_time = ptr and ptr.getBeginTime() or 0
- if config.usage.show_infobar_on_event_change.value:
- if old_begin_time and old_begin_time != self.current_begin_time:
- self.doShow()
+ ref = self.session.nav.getCurrentlyPlayingServiceReference()
+ service_type = ref and ref.type
+ if service_type and service_type == eServiceReference.idDVB and not len(ref.getPath()):
+ service = self.session.nav.getCurrentService()
+ old_begin_time = self.current_begin_time
+ info = service and service.info()
+ ptr = info and info.getEvent(0)
+ self.current_begin_time = ptr and ptr.getBeginTime() or 0
+ if config.usage.show_infobar_on_event_change.value:
+ if old_begin_time and old_begin_time != self.current_begin_time:
+ self.doShow()
def __serviceStarted(self):
self.current_begin_time=0
if config.usage.show_infobar_on_zap.value:
- service = self.session.nav.getCurrentlyPlayingServiceReference()
- service_type = service and service.type:
- if service_type and service_type == eServiceReference.idDVB and not len(service.getPath()):
+ ref = self.session.nav.getCurrentlyPlayingServiceReference()
+ ref_type = ref and ref.type
+ if ref_type and ref_type == eServiceReference.idDVB and not len(ref.getPath()):
self.doShow()
def __onShow(self):