summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-24 01:19:12 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-24 01:19:12 +0100
commit8dd7d92e08290d13b6cdedfc022e2299de06b42d (patch)
tree08ba040e94a377628ea1d0b9afe37ad58aae3971 /pages
parent6304bd11852dc998d28ecc9d5ae23a239300144d (diff)
downloadvdr-plugin-live-8dd7d92e08290d13b6cdedfc022e2299de06b42d.tar.gz
vdr-plugin-live-8dd7d92e08290d13b6cdedfc022e2299de06b42d.tar.bz2
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
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 << ",";