<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 26 Feb 2025 at 22:16, Alan W. Bak <<a href="mailto:alan@cinebyte.com">alan@cinebyte.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
I am using the recording pending System Event to launch a Perl program <br>
to change the channel on a STB. The program writes messages to a log <br>
file and the output shows that the program is launched 4 times for each <br>
pending recording (every 30 seconds starting 2 minutes before recording).<br>
<br>
     2025-02-26 19:58:00    recording pending, mapping 10208 -> 384 -> <br>
/usr/Q_event/0384.sh<br>
     2025-02-26 19:58:30    recording pending, mapping 10208 -> 384 -> <br>
/usr/Q_event/0384.sh<br>
     2025-02-26 19:59:00    recording pending, mapping 10208 -> 384 -> <br>
/usr/Q_event/0384.sh<br>
     2025-02-26 19:59:30    recording pending, mapping 10208 -> 384 -> <br>
/usr/Q_event/0384.sh<br>
<br>
Any idea on why this is happening and how I can reduce it to a single <br>
run? Also, can I set the lead time for a recording pending event?<br>
<br></blockquote><div>How it works can be found in the following commit:</div><div><a href="https://github.com/MythTV/mythtv/commit/55a7d8293004b0cadb921a383b44a0fb9954a287">https://github.com/MythTV/mythtv/commit/55a7d8293004b0cadb921a383b44a0fb9954a287</a></div><div><br></div><div>The events come before the actual program start time so that there is time to start the set-top-box or whatever device the stream comes from.</div><div>The number of seconds before the recording starts is part of the event message so you can use that to select actions.</div><div>For instance, you can power on the set-top-box at 120 seconds and then start the recording at 30 seconds before the program start time.</div><div><br></div><div>Hope this helps,</div><div>Klaas.</div><div><br></div></div></div>