mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
timerd: adjust recording timers to epg
Origin commit data
------------------
Commit: c07b0f0b6c
Author: martii <m4rtii@gmx.de>
Date: 2016-09-26 (Mon, 26 Sep 2016)
This commit is contained in:
@@ -1121,7 +1121,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
epgData.epg_times.startzeit + epgData.epg_times.dauer,
|
||||
epgData.eventID, epgData.epg_times.startzeit,
|
||||
epgData.epg_times.startzeit - (ANNOUNCETIME + 120 ),
|
||||
TIMERD_APIDS_CONF, true, recDir,false) == -1)
|
||||
TIMERD_APIDS_CONF, true, true, recDir, false) == -1)
|
||||
{
|
||||
if (askUserOnTimerConflict(epgData.epg_times.startzeit - (ANNOUNCETIME + 120),
|
||||
epgData.epg_times.startzeit + epgData.epg_times.dauer))
|
||||
@@ -1131,7 +1131,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
epgData.epg_times.startzeit + epgData.epg_times.dauer,
|
||||
epgData.eventID, epgData.epg_times.startzeit,
|
||||
epgData.epg_times.startzeit - (ANNOUNCETIME + 120 ),
|
||||
TIMERD_APIDS_CONF, true, recDir,true);
|
||||
TIMERD_APIDS_CONF, true, true, recDir, true);
|
||||
ShowMsg(LOCALE_TIMER_EVENTRECORD_TITLE, LOCALE_TIMER_EVENTRECORD_MSG, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_EPG]);
|
||||
}
|
||||
|
@@ -105,7 +105,7 @@ int CFollowScreenings::exec(CMenuTarget* /*parent*/, const std::string & actionK
|
||||
}
|
||||
|
||||
if (g_Timerd->addRecordTimerEvent(channel_id, e->startTime, e->startTime + e->duration, e->eventID,
|
||||
e->startTime, e->startTime - (ANNOUNCETIME + 120 ), apids, true, recDir, true) == -1) {
|
||||
e->startTime, e->startTime - (ANNOUNCETIME + 120 ), apids, true, true, recDir, true) == -1) {
|
||||
//FIXME -- no error handling, but this shouldn't happen ...
|
||||
} else {
|
||||
#if 0
|
||||
|
@@ -316,6 +316,7 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
eventinfo.channel_id=timerNew.channel_id;
|
||||
eventinfo.apids = TIMERD_APIDS_CONF;
|
||||
eventinfo.recordingSafety = false;
|
||||
eventinfo.autoAdjustToEPG = true;
|
||||
timerNew.standby_on = (timerNew_standby_on == 1);
|
||||
void *data=NULL;
|
||||
if (timerNew.eventType == CTimerd::TIMER_STANDBY)
|
||||
@@ -333,6 +334,7 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
recinfo.channel_id=timerNew.channel_id;
|
||||
recinfo.apids=TIMERD_APIDS_CONF;
|
||||
recinfo.recordingSafety = false;
|
||||
recinfo.autoAdjustToEPG = true; // FIXME -- add GUI option?
|
||||
|
||||
timerNew.announceTime-= 120; // 2 more mins for rec timer
|
||||
strncpy(recinfo.recordingDir,timerNew.recordingDir,sizeof(recinfo.recordingDir)-1);
|
||||
|
Reference in New Issue
Block a user