From 60cb52fca1186dbba8d096976b56af682026f0b9 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 3 Apr 2007 17:31:48 +0000 Subject: [PATCH] fix --- lib/python/Screens/InfoBarGenerics.py | 25 ++++++++++++++----------- 1 file 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): -- 2.30.2