Hi,
In case you haven't noticed we are starting to re-factor and release some of our code technology for everyone to use!
xmltvAlter is one of those applications that can do alot with only a little effort.
Here is a sample set of rules to merge your
Standard Definition and
High Definition channels together.
The first two "duplicateChannel" rules create two new channels, "
SevenHD-Syd" and "
TenHD-Syd", by copying "
Seven-Syd" and "
Ten-NSW". The next two "mergeChannels" rules overlay the "
SevenHD" and "
TenHD" programmes into the newly created channels.
Code:
<rule type="duplicateChannel" sourceChannelId="Seven-Syd" destinationChannelId="SevenHD-Syd" />
<rule type="duplicateChannel" sourceChannelId="Ten-Nsw" destinationChannelId="TenHD-Syd" />
<rule type="mergeChannels" sourceChannelId="SevenHD" destinationChannelId="SevenHD-Syd" removePartialOverrides="false" log="true" />
<rule type="mergeChannels" sourceChannelId="TenHD" destinationChannelId="TenHD-Syd" removePartialOverrides="false" log="true" />
OR ...
... you could just do it with only two rules (and no new channels created)! These two merge rules are using the
mergeType="underwrite" attribute which means the
destinationChannel is
under-written by the
sourceChannel. In effect this means "Seven-Syd" data is slipped under the "SevenHD" data, allowing the original HD data to replace the underlaying SD data.
Code:
<rule type="mergeChannels" sourceChannelId="Seven-Syd" destinationChannelId="SevenHD" removePartialOverrides="false" mergeType="underwrite" log="true" />
<rule type="mergeChannels" sourceChannelId="Ten-NSW" destinationChannelId="TenHD" removePartialOverrides="false" mergeType="underwrite" log="true" />

Hope that made sense!
Thanks,