timerlist/controlapi: enable epg_starttime for remote timers

Origin commit data
------------------
Branch: ni/coolstream
Commit: 713491e701
Author: TangoCash <eric@loxat.de>
Date: 2019-04-28 (Sun, 28 Apr 2019)

Origin message was:
------------------
- timerlist/controlapi: enable epg_starttime for remote timers

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2019-04-28 21:17:37 +02:00
committed by vanhofen
parent 237927a0a1
commit 631473c43a
3 changed files with 12 additions and 5 deletions

View File

@@ -2652,6 +2652,13 @@ void CControlAPI::SendTimers(CyhookHandler *hh)
timer_item += hh->outArray("stop", stop, true);
}
// epg_starttime
std::string start = "";
struct tm *startTime = localtime(&(timer->epg_starttime));
start += hh->outArrayItem("normal", _SendTime(hh, startTime, (int)timer->epg_starttime), false);
timer_item += hh->outArray("start", start, true);
// repeat
std::string repeat = "";
@@ -3000,7 +3007,7 @@ void CControlAPI::doNewTimer(CyhookHandler *hh)
CTimerd::RecordingInfo recinfo;
CTimerd::EventInfo eventinfo;
eventinfo.epg_id = 0;
eventinfo.epg_starttime = 0;
eventinfo.epg_starttime = atoi(hh->ParamList["start"].c_str());
eventinfo.apids = TIMERD_APIDS_CONF;
eventinfo.recordingSafety = (hh->ParamList["rs"] == "1") || (hh->ParamList["rs"] == "on");
eventinfo.autoAdjustToEPG = (hh->ParamList["aj"] == "1") || (hh->ParamList["aj"] == "on");