View Single Post
Old 2008-09-11, 11:34   #7 (permalink)
justinteract
Portal Member
 
Join Date: Nov 2007
Location: Hamburg
Posts: 94
Thanks: 3
Thanked 13 Times in 6 Posts

Country:

My System

Default

There are actually two problems with MP and Premiere (encrypted channels in general).
A) the code that compares the FTA flag from the database and the scrambled flag from the parser is wrong.
B) The FTA flag is not set correct in the database.

Both problems occur because the scrambled identification of MP does not work reliable for Premiere

On B) you can check if all the Premiere channels show up in TvChannel in red. The sportportal option channels are wrongly recognized as FTA and show up in green. To correct this you can set the FTA flag to false in the DB to correct this. You need to change "freeToAir" in Channel AND TuningDetail.

It may work after, if it still doesn't work then its because of A). To fix this you need change MP code (or find a developer to do this )
The problem is in
class TvDvbChannel
protected bool SendPmtToCam(out bool updatePids)
Line:
if (_channelInfo.scrambled = channel.FreeToAir)

this of course should be
if (_channelInfo.scrambled == channel.FreeToAir)

In our code we changed this to
Code:
if (_channelInfo.scrambled == channel.FreeToAir)
{
	// XXX JIT we use the FreeToAir setting as reference now and set the _channelInfo.scrambled accordingly
	_channelInfo.scrambled = !channel.FreeToAir;
	Log.Log.WriteFile("TvDvbChannel.SendPmtToCam() corrected setting _channelInfo.scrambled {0} , channel.FreeToAir {1}", _channelInfo.scrambled, channel.FreeToAir);
}
so that the FTA setting from the DB is the reference and the unreliable "scrambled" flag is adjusted if they mismatch.
We also patched the scanning so that Premiere option channels are recognized as scrambled.
Code:
if (dvbsChannel.NetworkId == 133 && dvbsChannel.Name.StartsWith("Unknown")) {
	Log.Log.Write("JIT: set PREMIERE subchannel FTA to false for logChannelNumber {0}", dvbsChannel.LogicalChannelNumber);
	dvbsChannel.FreeToAir = false;
}
If a developer reads this: it would be nice to find out why for some premiere channels freeCAMode is not set correct. I volunteer to test, since I have all Premiere channels available, please contact me direct.
justinteract is offline   Reply With Quote