blob: 8295b8031529cf8d25d2f274cb48669451613f5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<%pre>
#include <boost/lexical_cast.hpp>
#include <vdr/plugin.h>
#include <vdr/channels.h>
#include <vdr/epg.h>
#include <vdr/config.h>
int channel_number;
cSchedulesLock schedulesLock;
const cSchedules* schedules = cSchedules::Schedules(schedulesLock);
</%pre>
<%args>
channel;
</%args>
<html>
<head>
<title>ecpp-application testproject</title>
</head>
<body>
<{
if (channel.empty()) {
channel_number = 1;
} else {
try {
channel_number = boost::lexical_cast<int>(channel);
} catch (boost::bad_lexical_cast const&) {
}>
Channel nicht numerisch!
<{
}
}>
Programm für Channel Nummer <$ channel_number $><br/>
<{
for (cChannel *channel = Channels.First(); channel; channel = Channels.Next(channel)) {
if (!channel->GroupSep() && (channel->Number() == channel_number)) {
const cSchedule *Schedule = schedules->GetSchedule(channel);
if (Schedule) {
time_t now = time(NULL) - Setup.EPGLinger * 60;
for (const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->Next(ev)) {
}>
<$ ev->Title() $><br/>
<{
}
} else {
}>
Kein Schedule für Channel <$ channel->Number() $>
<{
}
}
}
}
}>
</body>
</html>
|