modify uhd channel detection to catch channels broadcasting not in DVB specs

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: e3d94c2c60
Author: TangoCash <eric@loxat.de>
Date: 2017-10-20 (Fri, 20 Oct 2017)
This commit is contained in:
TangoCash
2017-10-20 21:59:19 +02:00
committed by Thilo Graf
parent 25106d7e61
commit e7f9b6d2ba

View File

@@ -199,10 +199,26 @@ unsigned char CZapitChannel::getServiceType(bool real)
bool CZapitChannel::isUHD()
{
if (serviceType == 0x1f)
switch(serviceType) {
case 0x1f:
return true;
case ST_DIGITAL_TELEVISION_SERVICE:
case 0x19:
{
std::string uhd = "UHD";
if(strstr(name.c_str(),uhd.c_str()))
return true;
uhd = "4K";
if(strstr(name.c_str(),uhd.c_str()))
return true;
uhd = "4k";
if(strstr(name.c_str(),uhd.c_str()))
return true;
}
default:
return false;
}
}
bool CZapitChannel::isHD()
{