From: ghost Date: Sat, 16 May 2009 16:20:14 +0000 (+0200) Subject: RecordTimer.py: fix isInTimer for repeating timers .. thx to adenin X-Git-Tag: 2.6.0~317^2 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/9f2d37189bea613bb562a4e8b69121572d8efe5f RecordTimer.py: fix isInTimer for repeating timers .. thx to adenin --- diff --git a/RecordTimer.py b/RecordTimer.py index fd2da33c..e8b76e92 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -649,7 +649,7 @@ class RecordTimer(timer.Timer): chktimecmp_end = chktimecmp + (duration / 60) time = localtime(x.begin) for y in (0, 1, 2, 3, 4, 5, 6): - if x.repeated & (2 ** y): + if x.repeated & (2 ** y) and (x.begin <= begin or begin <= x.begin <= end): timecmp = y * 1440 + time.tm_hour * 60 + time.tm_min if timecmp <= chktimecmp < (timecmp + ((x.end - x.begin) / 60)): time_match = ((timecmp + ((x.end - x.begin) / 60)) - chktimecmp) * 60