From 54b3daa371c5e44ae62ffa9380c2a4017725171e Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 16 Feb 2020 00:22:09 +0100 Subject: [PATCH] - a bit more readability in latest changes Signed-off-by: Thilo Graf --- src/nhttpd/tuxboxapi/controlapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nhttpd/tuxboxapi/controlapi.cpp b/src/nhttpd/tuxboxapi/controlapi.cpp index 40341a1db..0c401937d 100644 --- a/src/nhttpd/tuxboxapi/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/controlapi.cpp @@ -3247,12 +3247,12 @@ void CControlAPI::xmltvepgCGI(CyhookHandler *hh) for (int i = 0; i < (int) g_bouquetManager->Bouquets.size(); i++) { + g_bouquetManager->Bouquets[i]->getTvChannels(chanlist); + // 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 == 0) - g_bouquetManager->Bouquets[i]->getTvChannels(chanlist); - else + if (m == CZapitClient::MODE_RADIO) g_bouquetManager->Bouquets[i]->getRadioChannels(chanlist); if(!chanlist.empty() && !g_bouquetManager->Bouquets[i]->bHidden && g_bouquetManager->Bouquets[i]->bUser)