Evening people!
I need some help from people that know where in the BAT I can find the Sky numbering. I'm particularly looking at MM1352000 and SJB here give the work on MP TVE3.5 and EPGCollector.
A bit of background:
DJBlu, a developer who has been assisting the main MediaPortal team, has developed a custom plugin system that can make your mediaportal installation act like a sky box. He unfortunately suffered a HDD failure and lost all his recent code and with being posted of to Afghanistan soon I believe, he doesn't have time to rebuild... So I've taken it on to bring up to do the only source he has as well as deal with the issues plaguing the current NZ plugin.
So, I've solved some of my trouble but I'm a bit stuck with getting the LCN for the sky channels. I know its in the BAT which is what this plugin is based on as it is only for the OpenTV platform, however the NZ bat location appears to be different to the NZ ones. So here is the little bit of VB code that tries to get the LCNs:
If (descriptorType = &HB1) Then
Dim RegionID As Integer = buffer(currentTransportDescriptor + 3)
Do While (currentServiceDescriptor < endOfServiceDescriptors)
Dim serviceId As Integer = (buffer(currentServiceDescriptor + 2) * 256) + buffer(currentServiceDescriptor + 3)
Dim channelId As Integer = (buffer(currentServiceDescriptor + 5) * 256) + buffer(currentServiceDescriptor + 6)
Dim skyChannelNumber As Integer = (buffer(currentServiceDescriptor + 7) * 256) + buffer(currentServiceDescriptor + 8)
Dim skyChannel As Sky_Channel = GetChannel(channelId)
Dim SkyLCN As New LCNHolder(bouquetId, RegionID, skyChannelNumber)
I've bolded the section that I need assistance with... This works fine for the UK and not NZ and I don't have any decent tools that can step through the stream and look at the payloads decrypted to work out what is where in the buffer...
Can anyone help? I can upload the source if required if people need to look further.
Thanks in advance for assistance,
Chris