if RecordTimer.chechForRecordings():
if Screens.Standby.inStandby: #In case some plugin did put the receiver already in standby
config.misc.standbyCounter.value = 0
- RecordTimer.RecordTimerEntry.wasInDeepStandby = True
+ RecordTimer.RecordTimerEntry.setWasInDeepStandby()
self.keypress() #this ensures to unbind the keypress detection
def keypress(self, key=None, flag=1):
@staticmethod
def keypress(key=None, flag=1):
- if flag and RecordTimerEntry.wasInStandby:
+ if flag and (RecordTimerEntry.wasInStandby or RecordTimerEntry.wasInDeepStandby):
RecordTimerEntry.wasInStandby = False
+ RecordTimerEntry.wasInDeepStandby = False
eActionMap.getInstance().unbindAction('', RecordTimerEntry.keypress)
@staticmethod
+ def setWasInDeepStandby():
+ RecordTimerEntry.wasInDeepStandby = True
+ eActionMap.getInstance().bindAction('', -maxint - 1, RecordTimerEntry.keypress)
+
+ @staticmethod
def setWasInStandby():
if not RecordTimerEntry.wasInStandby:
- RecordTimerEntry.wasInStandby = True
+ if not RecordTimerEntry.wasInDeepStandby:
+ eActionMap.getInstance().bindAction('', -maxint - 1, RecordTimerEntry.keypress)
RecordTimerEntry.wasInDeepStandby = False
- eActionMap.getInstance().bindAction('', -maxint - 1, RecordTimerEntry.keypress)
+ RecordTimerEntry.wasInStandby = True
@staticmethod
def shutdown():
self.log(11, "start recording")
if RecordTimerEntry.wasInDeepStandby:
- RecordTimerEntry.wasInDeepStandby = False
+ RecordTimerEntry.keypress()
if not Screens.Standby.inStandby:
Notifications.AddNotification(Screens.Standby.Standby, StandbyCounterIncrease=False)