diff options
author | horchi <vdr@jwendel.de> | 2020-02-15 10:55:30 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2020-02-15 10:55:30 +0100 |
commit | 2387a5893be264e59e60a8f9e1c302c53b791128 (patch) | |
tree | d4d83be2ffac24eebd07af5a8854e41a592ab539 /ttools.c | |
parent | dddd5c42b27d936f22468f95e3da0a776451dbb7 (diff) | |
download | vdr-plugin-epg2vdr-2387a5893be264e59e60a8f9e1c302c53b791128.tar.gz vdr-plugin-epg2vdr-2387a5893be264e59e60a8f9e1c302c53b791128.tar.bz2 |
2020-02-14: version 1.1.107 (horchi,seahawk1986)\n - bugfix: Fixed cleanup of image links\n - change: Improved cleanup spead for images and links\n - bugfix: Fixed time handling for timers without event\n\n1.1.107
Diffstat (limited to 'ttools.c')
-rw-r--r-- | ttools.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -329,10 +329,13 @@ int updateRowByTimer(cDbRow* timerRow, const cTimer* t) contentOfTag(t, "directory", directory, 512); contentOfTag(t, "source", source, 40); + time_t startTime = hhmm2L(t->Start(), t->Day()); + time_t endTime = hhmm2L(t->Stop(), t->Day() + t->Stop() < t->Start() ? tmeSecondsPerDay : 0); + 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("_STARTTIME", startTime); + timerRow->setValue("_ENDTIME", endTime); timerRow->setValue("CHANNELID", channelId); timerRow->setValue("DAY", t->Day()); timerRow->setValue("STARTTIME", t->Start()); |