From: Chris Tallon Date: Tue, 6 Sep 2005 20:43:29 +0000 (+0000) Subject: FTA options patch by davep X-Git-Tag: r0-0-17~5 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=82fedc742c6e1f080fb37fbc864fa662c7937b76;p=vompserver.git FTA options patch by davep --- diff --git a/mvpclient.c b/mvpclient.c index 14f0530..94430cc 100644 --- a/mvpclient.c +++ b/mvpclient.c @@ -366,18 +366,17 @@ void MVPClient::processGetChannelsList(UCHAR* data, int length) char* point; ULONG type; + char* chanConfig = config.getValueString("General", "Channels"); + int allChans = 1; + if (chanConfig) allChans = strcasecmp(chanConfig, "FTA only"); + for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) { - -// Re-enable later with some client side option -//#if VDRVERSNUM < 10300 -// if (!channel->GroupSep() && !channel->Ca()) -//#else -// if (!channel->GroupSep() && !channel->Ca(0)) -//#endif -// { - - if (!channel->GroupSep()) +#if VDRVERSNUM < 10300 + if (!channel->GroupSep() && (!channel->Ca() || allChans)) +#else + if (!channel->GroupSep() && (!channel->Ca(0) || allChans)) +#endif { log->log("Client", Log::DEBUG, "name: '%s'", channel->Name());