diff options
-rw-r--r-- | configs/epg.dat | 5 | ||||
-rw-r--r-- | epg2vdr.c | 3 | ||||
-rw-r--r-- | ttools.c | 1 |
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, @@ -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); @@ -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()); |