Project

General

Profile

Actions

Feature #6079

open

Run script on tune request

Added by Sean Micklem over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-08-07
Due date:
% Done:

0%

Estimated time:

Description

When tuning certain channels I need to send some specific control commands to another piece of equipment, and another set of commands when I stop watching. I can do this in a recording profile using pre-processor and post processor commands that call shell scripts, but that only works when recording, not when tuning a live channel. I need to be able to run one script when the channel is tuned and an second script when playing stops, and the scripts are channel specific (especially the one at the start of tuning). I found the thread at https://tvheadend.org/issues/6039 where it was suggested to the OP that this issue be created but he never did, so I am doing so because I'm in a somewhat similar situation to his (however the device I'm using can be programmed to produce a transport stream (.ts) so I don't need to use .m3u8 files or anything like that). There was some talk in that thread about a really kludgey solution but I followed the links and could not figure out what was being suggested (and I don't think it was applicable to what I am trying to do anyway), and in any case it would be much easier to be able to do this from within Tvheadend itself.

The options to send these pre- and post-tuning commands could be associated with the channel, or with the mux (or I suppose even the service), though from a user's perspective it would probably make more sense for it to be an advanced option for the channel, but in my situation there is a 1:1 relationship between mux, service, and channel (there is only one service and channel per mux) so it really would not matter.

Actions

Also available in: Atom PDF