mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
Merge branch 'cst-next' of git://coolstreamtech.de/cst-public-gui-neutrino into ni/cst-next
Conflicts:
lib/timerdclient/timerdclient.cpp
lib/timerdclient/timerdclient.h
lib/timerdclient/timerdtypes.h
src/gui/followscreenings.cpp
src/timerd/timerd.cpp
src/timerd/timermanager.cpp
src/timerd/timermanager.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: ff7fb885c8
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-26 (Mon, 26 Sep 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2817,7 +2817,8 @@ void CControlAPI::doNewTimer(CyhookHandler *hh)
|
||||
eventinfo.epgID = 0;
|
||||
eventinfo.epg_starttime = 0;
|
||||
eventinfo.apids = TIMERD_APIDS_CONF;
|
||||
eventinfo.recordingSafety = (hh->ParamList["rs"] == "1");
|
||||
eventinfo.recordingSafety = (hh->ParamList["rs"] == "1") || (hh->ParamList["rs"] == "on");
|
||||
eventinfo.autoAdjustToEPG = (hh->ParamList["aj"] == "1") || (hh->ParamList["aj"] == "on");
|
||||
|
||||
// channel by Id or name
|
||||
if(!hh->ParamList["channel_id"].empty())
|
||||
|
@@ -1193,7 +1193,7 @@ void CTimerEvent_Record::fireEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
return;
|
||||
Refresh();
|
||||
getEpgId();
|
||||
CTimerd::RecordingInfo ri=eventInfo;
|
||||
ri.eventID=eventID;
|
||||
strcpy(ri.recordingDir, recordingDir.substr(0,sizeof(ri.recordingDir)-1).c_str());
|
||||
@@ -1331,7 +1331,17 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
if (first == evtlist.end())
|
||||
return false;
|
||||
|
||||
CTimerEvent_Record *event= new CTimerEvent_Record(first->startTime - (alarmTime - announceTime), first->startTime, first->startTime + first->duration,
|
||||
time_t _announceTime = first->startTime - (alarmTime - announceTime);
|
||||
time_t _alarmTime = first->startTime;
|
||||
time_t _stopTime = first->startTime + first->duration;
|
||||
if (recordingSafety) {
|
||||
int pre, post;
|
||||
CTimerManager::getInstance()->getRecordingSafety(pre, post);
|
||||
_alarmTime -= pre;
|
||||
_stopTime += post;
|
||||
}
|
||||
|
||||
CTimerEvent_Record *event= new CTimerEvent_Record(_announceTime, _alarmTime, _stopTime,
|
||||
eventInfo.channel_id, eventInfo.epgID, first->startTime, eventInfo.apids,
|
||||
CTimerd::TIMERREPEAT_ONCE, 1, recordingDir, recordingSafety, autoAdjustToEPG,
|
||||
eventInfo.channel_ci); //NI
|
||||
|
Reference in New Issue
Block a user