SIevent::getFSK() - workaround for ITA ESP FRA fsk.

This commit is contained in:
Jacek Jendrzej
2013-05-24 17:44:03 +02:00
parent 09ab981b94
commit 672c6ae4eb

View File

@@ -357,7 +357,22 @@ char SIevent::getFSK() const
return (it->rating + 3); // 0x01 to 0x0F minimum age = rating + 3 years return (it->rating + 3); // 0x01 to 0x0F minimum age = rating + 3 years
else else
return (it->rating == 0 ? 0 : 18); // return FSK 18 for : 0x10 to 0xFF defined by the broadcaster return (it->rating == 0 ? 0 : 18); // return FSK 18 for : 0x10 to 0xFF defined by the broadcaster
}else if( it->countryCode == "FRA" && it->rating == 0x10)// workaround for ITA ESP FRA fsk.
{
return 0;
}else if(it->countryCode == "ITA" && it->rating == 1)
{
return 0;
}else if( it->countryCode == "ESP" )
{
if(it->rating == 0x10 || it->rating == 0x11)
return 0;
else if(it->rating == 0x12)
return 18;
else
return (it->rating + 1);
} }
} }
if (!ratings.empty()) if (!ratings.empty())
{ {