Opened 5 years ago

Closed 4 years ago

#12453 closed Patch - Feature (Fixed)

Add system event for LiveTV Ended to compliment LiveTV Started

Reported by: hpx@… Owned by: Stuart Auchterlonie
Priority: minor Milestone: 0.28
Component: MythTV - MythSystem Version: 0.27.4
Severity: low Keywords:
Cc: Ticket locked: no

Description

I have a crappy cable STB which has no power on/of IR code, just a power toggle. To get around this problem I have been using the rec pending & rec finished system events to execute a script that turns the STB on before a recording stops and off after it ends. This works well for standard recordings, but causes issues in a live TV situation as it tries to turn the STB off while changing channels.

To work around this problem I was using the LiveTV start event to know when to ignore record start/end events, but I needed a LiveTV end event to ensure the STB was powered off when exiting live TV mode. This patch adds that event.

Attachments (4)

config_backend_general.xml.patch (808 bytes) - added by anonymous 5 years ago.
mythsystemevent.cpp.patch (640 bytes) - added by hox@… 5 years ago.
tv_play.cpp.patch (422 bytes) - added by hpx@… 5 years ago.
tv_play.cpp.2.patch (906 bytes) - added by hpx@… 5 years ago.
Updated patch for this file to fix event being triggered on playback end

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by anonymous

Changed 5 years ago by hox@…

Attachment: mythsystemevent.cpp.patch added

Changed 5 years ago by hpx@…

Attachment: tv_play.cpp.patch added

Changed 5 years ago by hpx@…

Attachment: tv_play.cpp.2.patch added

Updated patch for this file to fix event being triggered on playback end

comment:1 Changed 5 years ago by hpx@…

2nd patch added for tv_play.cpp to prevent the event from being triggered on playback end. It should only fire when leaving livetv mode.

comment:2 Changed 5 years ago by Stuart Auchterlonie

Milestone: unknown0.28
Owner: set to Stuart Auchterlonie
Status: newaccepted

Looks a nice clean patch. We should be able to get this one in no problem.

comment:3 Changed 4 years ago by hpx <hpx@…>

In 6c32a5e4e18ed85752029abed7d3be3398cf5a1e/mythtv:

Refs #12453. Adds a LIVETV_ENDED system event.
This complements the existing LIVETV_STARTED event

Signed-off-by: Stuart Auchterlonie <stuarta@…>

comment:4 Changed 4 years ago by hpx <hpx@…>

In a4530f20581785aa7706d29905f2d9c9cdbfb279/mythtv:

Refs #12453. Adds a LIVETV_ENDED system event.
This complements the existing LIVETV_STARTED event

Signed-off-by: Stuart Auchterlonie <stuarta@…>
(cherry picked from commit 6c32a5e4e18ed85752029abed7d3be3398cf5a1e)

comment:5 Changed 4 years ago by Stuart Auchterlonie

Resolution: Fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.