Skip to content

Commit

Permalink
default start/end time of recording rule for backend pre 0.28
Browse files Browse the repository at this point in the history
- start/end time are required for backend version <= 0.28
  • Loading branch information
janbar committed Feb 23, 2018
1 parent fd14139 commit cfb9fdb
Show file tree
Hide file tree
Showing 5 changed files with 477 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/cppmyth/MythScheduleHelper75.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,11 @@ MythRecordingRule MythScheduleHelper75::NewFromTimer(const MythTimerEntry& entry

MythRecordingRule rule;
XBMC->Log(LOG_DEBUG, "75::%s", __FUNCTION__);
// default required fields start, end time
time_t now = time(0);
rule.SetStartTime(now);
rule.SetEndTime(now);

if (withTemplate)
{
// Base on template
Expand Down
5 changes: 5 additions & 0 deletions src/cppmyth/MythScheduleHelper76.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ MythRecordingRule MythScheduleHelper76::NewFromTimer(const MythTimerEntry& entry

MythRecordingRule rule;
XBMC->Log(LOG_DEBUG, "76::%s", __FUNCTION__);
// default required fields start, end time
time_t now = time(0);
rule.SetStartTime(now);
rule.SetEndTime(now);

if (withTemplate)
{
// Base on template
Expand Down
Loading

0 comments on commit cfb9fdb

Please sign in to comment.