RecordTimer: try to disable pip when start record failed (not free tuner)
authorDima73 <Dima-73@inbox.lv>
Sun, 20 Dec 2015 15:06:59 +0000 (17:06 +0200)
committerDima73 <Dima-73@inbox.lv>
Sun, 20 Dec 2015 15:06:59 +0000 (17:06 +0200)
RecordTimer.py

index 4219989..62538b5 100644 (file)
@@ -580,6 +580,11 @@ class RecordTimerEntry(timer.TimerEntry, object):
                        self.log(13, "ok, zapped away")
                        #NavigationInstance.instance.stopUserServices()
                        NavigationInstance.instance.playService(self.service_ref.ref)
+                       if not self.first_try_prepare and self.InfoBarInstance and hasattr(self.InfoBarInstance.session, 'pipshown') and self.InfoBarInstance.session.pipshown:
+                               hasattr(self.InfoBarInstance, "showPiP") and self.InfoBarInstance.showPiP()
+                               if hasattr(self.InfoBarInstance.session, 'pip'):
+                                       del self.InfoBarInstance.session.pip
+                                       self.InfoBarInstance.session.pipshown = False
                else:
                        self.log(14, "user didn't want to zap away, record will probably fail")