summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/multischedule.ecpp9
1 files changed, 6 insertions, 3 deletions
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 << ",";