align bouquet names to delivery system (C/T/E/W)

Origin commit data
------------------
Commit: f153f3e9b2
Author: TangoCash <eric@loxat.de>
Date: 2018-01-12 (Fri, 12 Jan 2018)
This commit is contained in:
TangoCash
2018-01-12 14:49:02 +01:00
committed by vanhofen
parent ed8fc59669
commit 5a6a80fc74

View File

@@ -417,11 +417,15 @@ bool CSdt::AddToBouquet(std::string &providerName, CZapitChannel *channel)
case ST_NVOD_TIME_SHIFTED_SERVICE:
{
char pname[100];
if (!cable)
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W',
if SAT_POSITION_CABLE(satellitePosition)
snprintf(pname, 100, "[C%03d.%d] %s",
abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
else if SAT_POSITION_TERR(satellitePosition)
snprintf(pname, 100, "[T%03d.%d] %s",
abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
else
snprintf(pname, 100, "%s", providerName.c_str());
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W',
abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
int bouquetId = scanBouquetManager->existsBouquet(pname);
CZapitBouquet* bouquet;