Firstly, to manage expectations, if I decide to pursue this, due to upcoming personal commitments, I will not be able to commence programming work on this feature until October 2025 at the earliest.
Some more thoughts.....
I think that to begin with, this feature should be added to the 'DVR Profiles' object. This will allow the feature to apply to specific individual recordings or to recordings created by the 'Autorec' feature. It also means that these recordings can be stored in a specific location if required.
The feature should have a name that clearly denotes its function like 'Join consecutive events', "Merge consecutive recordings' or similar.
After a new recording is scheduled that is attached to a DVR profile that has this feature enabled, TVH will search for existing scheduled recordings that are consecutive and/or overlapping on the same channel as the recording that has just been created. If more multiple scheduled recordings are identified, a new 'parent' recording will be created spanning all of the 'child' recordings.
Perhaps if there is a small (configurable) gap between recordings, they could still be considered to be 'continuous'. Consider a condition like: Event One – One Minute News Break – Event Two, etc.
Parent and child recordings will be linked via their UUIDs. A 'child' will have a field for a single 'parent' UUID and a parent will have an array for multiple 'child' UUIDs.
When it comes time to record, the 'child' recordings will not be recorded, only the 'parent' will be physically recorded. For a 'child' recording, a hard link to the 'parent' recording file will be made and attached to the child. The 'parent' will have cue points for the beginning of each 'child' and each 'child' will have cue points for their segment of the 'parent' recording.
As not all file systems support 'hard links' some further consideration may be required. However, using hard links allows for parents and children to be deleted individually with the recording file only being deleted one all parent/children recordings have been deleted.
This sounds a little complicated, but it should mean that clients (like Kodi) should be able to access either the whole sequence or individual segments without needing to change the existing protocols.
With the 'parent', the EPG metadata will need to be updated so that it contains an amalgamation of the metadata from all of the 'children'. The title would have to indicate that this was a multi-event recording and the description would need to contain the original title/sub-title/description for all of the child events.
One enhancement could be to add a parent/child relationship at the dvr profile level. That way parents/children could be stored in different places with or without their own recording files or pointing to the parent. DVR profiles with no nominated parent profile would just use the same details as the child profile for the parent recording. Unfortunately, this could further complicate the 'hard link' issue.