Originally Posted by
Orlandox
Definetly the problem is related to the program's start time. If they start at the same time, only the first rec is red.
So long story short, starting timers is not tread safe. e.g. if we started 2 timers at the same time the control commands would both be sent to the LNB at the same instant and therefore not be understood. This is only a problem with Unicable where multiple tuners are talking to the same LNB.
So to fix the above problem simultaneous timers are staggered by one second, i.e. if the program starts at 20:00:00 the first timer will start at 20:00:00, the next timer at 20:00:01, and the next timer at 20:00:02, and so on.
That means if you set the margin to zero the first timer background will display correctly and the subsequent ones won't.
Code:
# Only highlight timers that span an entire event
https://github.com/OpenViX/enigma2/b...stGrid.py#L541
I guess maybe we could add a margin to workaround this, e.g. here: https://github.com/OpenViX/enigma2/b...stGrid.py#L533
Code:
timer, matchType = RecordTimer.isInTimerOnService(serviceTimers, stime, duration)
Change to:
Code:
timer, matchType = RecordTimer.isInTimerOnService(serviceTimers, stime + (20 if config.recording.margin_before.value == 0 else 0), duration)