Anyway, below are changes to RecordTimer.py to allow zip timer to use history.
--- old/lib/python/RecordTimer.py +++ new/lib/python/RecordTimer.py @@ -19,6 +19,8 @@ from time import localtime, strftime, ctime, time from bisect import insort +import Screens.InfoBar + # ok, for descriptions etc we have: # service reference (to get the service name) # name (title) @@ -307,6 +309,17 @@ Screens.Standby.inStandby.Power() else: self.log(11, "zapping") + try: + # Screens.InfoBar.instance may not exist here yet + InfoBarInstance = Screens.InfoBar.InfoBar.instance + if InfoBarInstance is not None: + CurServiceList = InfoBarInstance.servicelist + if CurServiceList is not None: + CurServiceList.setCurrentSelection(self.service_ref.ref) + CurServiceList.zap() + return True + except: + self.log(11, "zap error, revert to legacy") NavigationInstance.instance.playService(self.service_ref.ref) return True else:
Enclosed are the above diff file & my new RecordTimer.py.
Hope you like it and can add to the git.
Regards.
RecordTimer_zap_timer_patch.zip 8.84KB 2 downloads