mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- a bit more readability in latest changes
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -543,9 +543,9 @@ t_channel_id getepgid(std::string epg_name)
|
|||||||
CBouquetManager::ChannelIterator cit = g_bouquetManager->tvChannelsBegin();
|
CBouquetManager::ChannelIterator cit = g_bouquetManager->tvChannelsBegin();
|
||||||
|
|
||||||
// FIXME: Maybe there's a nicer solution
|
// FIXME: Maybe there's a nicer solution
|
||||||
for (int m = 0; m < 2; m++)
|
for (int m = CZapitClient::MODE_TV; m < CZapitClient::MODE_ALL; m++)
|
||||||
{
|
{
|
||||||
if (m == 1)
|
if (m == CZapitClient::MODE_RADIO)
|
||||||
cit = g_bouquetManager->radioChannelsBegin();
|
cit = g_bouquetManager->radioChannelsBegin();
|
||||||
|
|
||||||
for (; !(cit.EndOfChannels()); cit++)
|
for (; !(cit.EndOfChannels()); cit++)
|
||||||
|
@@ -3247,12 +3247,12 @@ void CControlAPI::xmltvepgCGI(CyhookHandler *hh)
|
|||||||
|
|
||||||
for (int i = 0; i < (int) g_bouquetManager->Bouquets.size(); i++)
|
for (int i = 0; i < (int) g_bouquetManager->Bouquets.size(); i++)
|
||||||
{
|
{
|
||||||
// FIXME: Maybe there's a nicer solution
|
|
||||||
for (int m = 0; m < 2; m++)
|
|
||||||
{
|
|
||||||
if (m == 0)
|
|
||||||
g_bouquetManager->Bouquets[i]->getTvChannels(chanlist);
|
g_bouquetManager->Bouquets[i]->getTvChannels(chanlist);
|
||||||
else
|
|
||||||
|
// FIXME: Maybe there's a nicer solution
|
||||||
|
for (int m = CZapitClient::MODE_TV; m < CZapitClient::MODE_ALL; m++)
|
||||||
|
{
|
||||||
|
if (m == CZapitClient::MODE_RADIO)
|
||||||
g_bouquetManager->Bouquets[i]->getRadioChannels(chanlist);
|
g_bouquetManager->Bouquets[i]->getRadioChannels(chanlist);
|
||||||
|
|
||||||
if(!chanlist.empty() && !g_bouquetManager->Bouquets[i]->bHidden && g_bouquetManager->Bouquets[i]->bUser)
|
if(!chanlist.empty() && !g_bouquetManager->Bouquets[i]->bHidden && g_bouquetManager->Bouquets[i]->bUser)
|
||||||
|
Reference in New Issue
Block a user