mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user