Skip to content

Commit

Permalink
[EPGSelection] fix bs if recordtimer from a plugin (e.g. ipboxclient)
Browse files Browse the repository at this point in the history
  • Loading branch information
iPkay committed Jun 3, 2018
1 parent 7778cb3 commit 5ccfa97
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions lib/python/Screens/EpgSelection.py
Expand Up @@ -1103,11 +1103,12 @@ def RecordTimerQuestion(self, manual=False):
foundtimer = timer
break
else:
eventBegin = event.getBeginTime()
eventDuration = event.getDuration()
x = self.session.nav.RecordTimer.isInTimer(eventid, eventBegin, eventDuration, refstr, True)
if x and x[1] in (2,7,12):
foundtimer = x[3]
if self.session.nav.isRecordTimerImageStandard:
eventBegin = event.getBeginTime()
eventDuration = event.getDuration()
x = self.session.nav.RecordTimer.isInTimer(eventid, eventBegin, eventDuration, refstr, True)
if x and x[1] in (2,7,12):
foundtimer = x[3]

if foundtimer:
timer = foundtimer
Expand Down Expand Up @@ -1376,11 +1377,12 @@ def onSelectionChanged(self):
isRecordEvent = True
break
else:
eventBegin = event.getBeginTime()
eventDuration = event.getDuration()
x = self.session.nav.RecordTimer.isInTimer(eventid, eventBegin, eventDuration, refstr)
if x and x[1] in (2,7,12):
isRecordEvent = True
if self.session.nav.isRecordTimerImageStandard:
eventBegin = event.getBeginTime()
eventDuration = event.getDuration()
x = self.session.nav.RecordTimer.isInTimer(eventid, eventBegin, eventDuration, refstr)
if x and x[1] in (2,7,12):
isRecordEvent = True

if isRecordEvent and self.key_green_choice != self.REMOVE_TIMER:
self.setTimerButtonText(_("Change timer"))
Expand Down

0 comments on commit 5ccfa97

Please sign in to comment.