mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Conflicts:
data/locale/deutsch.locale
data/locale/english.locale
data/locale/nederlands.locale
data/locale/slovak.locale
data/locale/unmaintained/czech.locale
src/gui/components/cc_frm_footer.cpp
src/gui/start_wizard.cpp
src/gui/widget/msgbox.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: fce378f8ff
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1224,7 +1224,7 @@ CTimerEvent_Record::CTimerEvent_Record(CConfigFile *config, int iId):
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::fireEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
if ((adjustToCurrentEPG()) && (alarmTime > time(NULL)))
|
||||
return;
|
||||
getEpgId();
|
||||
CTimerd::RecordingInfo ri=eventInfo;
|
||||
@@ -1240,7 +1240,7 @@ void CTimerEvent_Record::fireEvent()
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::announceEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
if ((adjustToCurrentEPG()) && (announceTime > time(NULL)))
|
||||
return;
|
||||
Refresh();
|
||||
CTimerd::RecordingInfo ri=eventInfo;
|
||||
@@ -1254,8 +1254,6 @@ void CTimerEvent_Record::announceEvent()
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::stopEvent()
|
||||
{
|
||||
if (adjustToCurrentEPG())
|
||||
return;
|
||||
CTimerd::RecordingStopInfo stopinfo;
|
||||
// Set EPG-ID if not set
|
||||
stopinfo.eventID = eventID;
|
||||
@@ -1346,6 +1344,9 @@ void CTimerEvent_Record::Refresh()
|
||||
//------------------------------------------------------------
|
||||
bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
{
|
||||
if (!(access(CONFIGDIR"/.adjust", F_OK) == 0))
|
||||
return false;
|
||||
|
||||
if (!autoAdjustToEPG)
|
||||
return false;
|
||||
|
||||
@@ -1382,9 +1383,11 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
_stopTime += post;
|
||||
}
|
||||
|
||||
if ((_alarmTime != alarmTime) || (_announceTime != announceTime) || (_stopTime != stopTime))
|
||||
if ((_alarmTime != alarmTime) || (_announceTime != announceTime) || (_stopTime != stopTime)) {
|
||||
alarmTime = _alarmTime; announceTime = _announceTime; stopTime = _stopTime;
|
||||
if (CTimerManager::getInstance()->adjustEvent(eventID, _announceTime, _alarmTime, _stopTime))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user