mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -417,11 +417,15 @@ bool CSdt::AddToBouquet(std::string &providerName, CZapitChannel *channel)
|
|||||||
case ST_NVOD_TIME_SHIFTED_SERVICE:
|
case ST_NVOD_TIME_SHIFTED_SERVICE:
|
||||||
{
|
{
|
||||||
char pname[100];
|
char pname[100];
|
||||||
if (!cable)
|
if SAT_POSITION_CABLE(satellitePosition)
|
||||||
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W',
|
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());
|
abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
|
||||||
else
|
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);
|
int bouquetId = scanBouquetManager->existsBouquet(pname);
|
||||||
CZapitBouquet* bouquet;
|
CZapitBouquet* bouquet;
|
||||||
|
Reference in New Issue
Block a user