Navigation: Do only go to standby when recording timer is likely
authorLittlesat <littlesat99@yahoo.com>
Sat, 7 Sep 2013 17:14:15 +0000 (19:14 +0200)
committerLittlesat <littlesat99@yahoo.com>
Sat, 7 Sep 2013 17:14:15 +0000 (19:14 +0200)
It seems that the FPWasTimerWakeup does not correctly work for all boxes
so add an extra test before going to standby if it is indeed likely the box
was initialized for a recording timer

Navigation.py

index 84ac980..2c546d6 100644 (file)
@@ -32,7 +32,7 @@ class Navigation:
                self.currentlyPlayingService = None
                self.RecordTimer = RecordTimer.RecordTimer()
                self.__wasTimerWakeup = getFPWasTimerWakeup()
-               if self.__wasTimerWakeup:
+               if self.__wasTimerWakeup and (len(self.getRecordings()) or abs(self.RecordTimer.getNextRecordingTime() - time()) <= 360):
                        if Screens.Standby.inStandby: #In case some plugin did put the receiver already in standby
                                config.misc.standbyCounter.value = 0
                        else: