I M wrote:
> After compiling the latest TVH the outcome was more or less the same as I'd experienced here, out of the box. Following that I had a closer look at what Jaroslav had done back in 2017, and made some changes that weren't quite the same, but which reassigned the Auckland TSID (evidently similar to what you were thinking). On the plus side that gave the expected 7-days of EPG in terms of channel and start time etc, however there were almost no associated titles or text.
Congratulations!
> I had a further quick play around with the tableid's and Huffman encoding to see if that sorted it out but ran out of time to do a lot more.
I can't remember exactly where, perhaps the first byte of the description, but there is sequence that indicates that Huffman encoding is in use.
Also....
I analysed the TSID grouping used by TVNZ and TVWorks for their Auckland services as well as the other regions. For both networks, TSIDs of the other regions are all offset by the same amount for each region.
Central TSID = Auckland TSID + 1
Wellington TSID = Auckland TSID + 2
South Island TSID = Auckland TSID + 3
Using this pattern, it would be easy to loop through all of the services, incrementing the TSID each time, until a match is found or the end of the regions is reached.
If (tsid == 0x19 || tsid == 0x1D)
{
for(offset = 0; offset < 4; offset++)
{
service = find_service(tsid + offset, onid, sid);
if(service)
{
new_tsid = service.tsid;
break;
}
}
}