Fanatic Is there a way to extend an active recording via API call? Say I'm recording a baseball game and the EPG has it scheduled for 1-4pm. Well the game runs long and I have a way to detect that. Is there an api call I can make to tell tvheadend to continue that recording until I detect that the game is over?
Extending a recording in tvheadend beyond its scheduled EPG time is a common need, especially for live sports programs. While tvheadend manages recordings based on the TV schedule data, there isn't a direct API call to tell an active recording to simply "continue until I say stop."
However, you can manage this scenario. When a baseball game runs long, and you detect this, you could create a new recording job via the tvheadend API. This new job would start at the original recording's scheduled end time and continue for a set duration, or until you detect the game is truly over.
You would need to use the EPG information to identify the original recording and then use tvheadend's API to schedule the extension. This involves setting the correct channel, start time, and an estimated end time for the added segment. If the game continues further, you might need to repeat this process. This method allows you to capture the entire event, even when the live TV schedule changes.