mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
zapit/bouquets: rework group-prefix handling
Origin commit data
------------------
Commit: cb3655189c
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-13 (Mon, 13 Feb 2023)
Origin message was:
------------------
- zapit/bouquets: rework group-prefix handling
This commit is contained in:
@@ -1095,8 +1095,14 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
{
|
{
|
||||||
std::string bname = prefix;
|
std::string bname = prefix;
|
||||||
if (bname.compare("") == 0)
|
if (bname.compare("") == 0)
|
||||||
|
{
|
||||||
bname = (mode == MODE_WEBTV) ? "WebTV" : "WebRadio";
|
bname = (mode == MODE_WEBTV) ? "WebTV" : "WebRadio";
|
||||||
bname += ": " + group;
|
bname += ": " + group;
|
||||||
|
}
|
||||||
|
else if (bname.compare("none") == 0)
|
||||||
|
bname = group;
|
||||||
|
else
|
||||||
|
bname += " " + group;
|
||||||
gbouquet = addBouquetIfNotExist(bname);
|
gbouquet = addBouquetIfNotExist(bname);
|
||||||
if (mode == MODE_WEBTV)
|
if (mode == MODE_WEBTV)
|
||||||
gbouquet->bWebtv = true;
|
gbouquet->bWebtv = true;
|
||||||
@@ -1212,8 +1218,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
CZapitBouquet* gbouquet = pbouquet;
|
CZapitBouquet* gbouquet = pbouquet;
|
||||||
if (!group.empty())
|
if (!group.empty())
|
||||||
{
|
{
|
||||||
std::string bname;
|
std::string bname = (mode == MODE_WEBTV) ? "WebTV" : "WebRadio";
|
||||||
bname = (mode == MODE_WEBTV) ? "WebTV" : "WebRadio";
|
|
||||||
bname += ": " + group;
|
bname += ": " + group;
|
||||||
gbouquet = addBouquetIfNotExist(bname);
|
gbouquet = addBouquetIfNotExist(bname);
|
||||||
if (mode == MODE_WEBTV)
|
if (mode == MODE_WEBTV)
|
||||||
|
Reference in New Issue
Block a user