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

Origin commit data
------------------
Branch: ni/coolstream
Commit: f153f3e9b2
Author: TangoCash <eric@loxat.de>
Date: 2018-01-12 (Fri, 12 Jan 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2018-01-12 14:49:02 +01:00
committed by vanhofen
parent 77aa3480f5
commit 89979bf1d5

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;