diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 13:12:05 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-04 13:12:05 +0000 |
commit | a8e44d74890b612813e91e1b1abf245826860429 (patch) | |
tree | 090f1dc429332ae791e9e02a5ed8d80110e5cb7e | |
parent | fe9152d39e9f35f58ad9e81ba84123e56062c994 (diff) | |
download | vdr-plugin-live-a8e44d74890b612813e91e1b1abf245826860429.tar.gz vdr-plugin-live-a8e44d74890b612813e91e1b1abf245826860429.tar.bz2 |
- added check for LastChannel-option
-rw-r--r-- | pages/whats_on_next.ecpp | 3 | ||||
-rw-r--r-- | pages/whats_on_now.ecpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pages/whats_on_next.ecpp b/pages/whats_on_next.ecpp index 5e6d5a6..22df5df 100644 --- a/pages/whats_on_next.ecpp +++ b/pages/whats_on_next.ecpp @@ -4,6 +4,7 @@ #include <vdr/epg.h> #include <vdr/config.h> #include <vdr/i18n.h> +#include "setup.h" #include "tools.h" using namespace vdrlive; @@ -34,7 +35,7 @@ const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); </div> <{ - for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) { + for (cChannel *Channel = Channels.First(); Channel && Channel->Number() <= LiveSetup().GetLastChannel(); Channel = Channels.Next(Channel)) { if (!Channel->GroupSep()) { const cSchedule *Schedule = Schedules->GetSchedule(Channel); if (Schedule) { diff --git a/pages/whats_on_now.ecpp b/pages/whats_on_now.ecpp index 8073fa9..e0a2ba1 100644 --- a/pages/whats_on_now.ecpp +++ b/pages/whats_on_now.ecpp @@ -4,6 +4,7 @@ #include <vdr/epg.h> #include <vdr/config.h> #include <vdr/i18n.h> +#include "setup.h" #include "tools.h" using namespace vdrlive; @@ -34,7 +35,7 @@ const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); </div> <{ - for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) { + for (cChannel *Channel = Channels.First(); Channel && Channel->Number() <= LiveSetup().GetLastChannel(); Channel = Channels.Next(Channel)) { if (!Channel->GroupSep()) { const cSchedule *Schedule = Schedules->GetSchedule(Channel); if (Schedule) { |