From 8dd7d92e08290d13b6cdedfc022e2299de06b42d Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 24 Jan 2011 01:19:12 +0100 Subject: Applied patch provided by Rolf Ahrenberg in the vdr-portal.de thread about the multischedule contribution to LIVE. See: http://www.vdr-portal.de/board/thread.php?postid=973272#post973272 --- pages/multischedule.ecpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pages') diff --git a/pages/multischedule.ecpp b/pages/multischedule.ecpp index 180b371..e9b4260 100644 --- a/pages/multischedule.ecpp +++ b/pages/multischedule.ecpp @@ -73,10 +73,13 @@ pageTitle = trVDR("Schedule"); if ( lastChannel == 0 ) lastChannel = Channels.MaxNumber(); std::stringstream groups; - for ( int i = 1; i<= lastChannel; i++) + int i = 0; + for (cChannel *channel = Channels.First(); channel && (channel->Number() <= lastChannel); channel = Channels.Next(channel)) { - groups << i; - if ( (i % 5) == 0 ) + if (channel->GroupSep()) + continue; + groups << channel->Number(); + if ( (++i % 5) == 0 ) groups << ";"; else groups << ","; -- cgit v1.2.3