From e3d94c2c60f3b381cda70e30d77957a028f49550 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 20 Oct 2017 21:59:19 +0200 Subject: [PATCH] modify uhd channel detection to catch channels broadcasting not in DVB specs Signed-off-by: Thilo Graf --- src/zapit/src/channel.cpp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/zapit/src/channel.cpp b/src/zapit/src/channel.cpp index 4180004e9..ecf5cbf2a 100644 --- a/src/zapit/src/channel.cpp +++ b/src/zapit/src/channel.cpp @@ -199,9 +199,25 @@ unsigned char CZapitChannel::getServiceType(bool real) bool CZapitChannel::isUHD() { - if (serviceType == 0x1f) - return true; - return false; + 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()