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-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=9f2d37189bea613bb562a4e8b69121572d8efe5f RecordTimer.py: fix isInTimer for repeating timers .. thx to adenin --- diff --git a/RecordTimer.py b/RecordTimer.py index fd2da33..e8b76e9 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