summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/epg.dat5
-rw-r--r--epg2vdr.c3
-rw-r--r--ttools.c1
3 files changed, 7 insertions, 2 deletions
diff --git a/configs/epg.dat b/configs/epg.dat
index 4a4129b..168d38b 100644
--- a/configs/epg.dat
+++ b/configs/epg.dat
@@ -615,6 +615,7 @@ Table timers
EVENTID "useid" eventid UInt 0 Data,
CHANNELID "" channelid Ascii 50 Data,
_STARTTIME "pre filled start timer for trigger" _starttime Int 10 Data,
+ _ENDTIME "pre filled end time" _endtime Int 10 Data,
SOURCE "like osd, webif, epgd" source Ascii 40 Data,
TYPE "'R'ecord, 'V'iew (umschalt)" type Ascii 1 Data,
@@ -630,8 +631,8 @@ Table timers
ACTIVE "" active UInt 0 Data,
DAY "" day Int 10 Data,
WEEKDAYS "" weekdays Int 10 Data,
- STARTTIME "" starttime Int 10 Data,
- ENDTIME "" endtime Int 10 Data,
+ STARTTIME "HHMM" starttime Int 10 Data,
+ ENDTIME "HHMM" endtime Int 10 Data,
FILE "" file Ascii 512 Data,
DIRECTORY "" directory Ascii 512 Data,
diff --git a/epg2vdr.c b/epg2vdr.c
index c51cc7e..a53a3f8 100644
--- a/epg2vdr.c
+++ b/epg2vdr.c
@@ -473,6 +473,9 @@ int cPluginEPG2VDR::initDb()
// where
// (t.state in ('P','R') or t.state is null)
// and t.vdruuid = v.uuid
+ // and t.type = 'R'
+ // and t.vdruuid = v.uuid
+ // order by _starttime
selectTimers = new cDbStatement(timerDb);
diff --git a/ttools.c b/ttools.c
index 5b2d9d8..f48135d 100644
--- a/ttools.c
+++ b/ttools.c
@@ -332,6 +332,7 @@ int updateRowByTimer(cDbRow* timerRow, const cTimer* t)
timerRow->setValue("VDRUUID", Epg2VdrConfig.uuid);
timerRow->setValue("EVENTID", t->Event() ? (long)t->Event()->EventID() : 0);
timerRow->setValue("_STARTTIME", t->Event() ? t->Event()->StartTime() : 0);
+ timerRow->setValue("_ENDTIME", t->Event() ? t->StopTime() : 0);
timerRow->setValue("CHANNELID", channelId);
timerRow->setValue("DAY", t->Day());
timerRow->setValue("STARTTIME", t->Start());