mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
cosmetics: align epg_id notation to channel_id
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4343c2d5da
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-04-27 (Sat, 27 Apr 2019)
Origin message was:
------------------
- cosmetics: align epg_id notation to channel_id
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -354,7 +354,7 @@ int CTimerManager::modifyEvent(int peventID, time_t announceTime, time_t alarmTi
|
||||
{
|
||||
CTimerEvent_Record *event_record = static_cast<CTimerEvent_Record*>(event);
|
||||
event_record->recordingDir = data.recordingDir;
|
||||
event_record->eventInfo.epgID = 0;
|
||||
event_record->eventInfo.epg_id = 0;
|
||||
event_record->eventInfo.epg_starttime = 0;
|
||||
event_record->getEpgId();
|
||||
break;
|
||||
@@ -362,7 +362,7 @@ int CTimerManager::modifyEvent(int peventID, time_t announceTime, time_t alarmTi
|
||||
case CTimerd::TIMER_ZAPTO:
|
||||
{
|
||||
CTimerEvent_Zapto *event_zapto = static_cast<CTimerEvent_Zapto*>(event);
|
||||
event_zapto->eventInfo.epgID = 0;
|
||||
event_zapto->eventInfo.epg_id = 0;
|
||||
event_zapto->eventInfo.epg_starttime = 0;
|
||||
event_zapto->getEpgId();
|
||||
break;
|
||||
@@ -1030,7 +1030,7 @@ void CTimerEvent::printEvent(void)
|
||||
" epg: %s (%" PRIx64 ")\n",
|
||||
static_cast<CTimerEvent_Zapto*>(this)->eventInfo.channel_id,
|
||||
static_cast<CTimerEvent_Zapto*>(this)->epgTitle.c_str(),
|
||||
static_cast<CTimerEvent_Zapto*>(this)->eventInfo.epgID);
|
||||
static_cast<CTimerEvent_Zapto*>(this)->eventInfo.epg_id);
|
||||
break;
|
||||
|
||||
case CTimerd::TIMER_RECORD :
|
||||
@@ -1039,7 +1039,7 @@ void CTimerEvent::printEvent(void)
|
||||
" epg: %s(%" PRIx64 ") apids: 0x%X\n dir: %s\n",
|
||||
static_cast<CTimerEvent_Record*>(this)->eventInfo.channel_id,
|
||||
static_cast<CTimerEvent_Record*>(this)->epgTitle.c_str(),
|
||||
static_cast<CTimerEvent_Record*>(this)->eventInfo.epgID,
|
||||
static_cast<CTimerEvent_Record*>(this)->eventInfo.epg_id,
|
||||
static_cast<CTimerEvent_Record*>(this)->eventInfo.apids,
|
||||
static_cast<CTimerEvent_Record*>(this)->recordingDir.c_str());
|
||||
break;
|
||||
@@ -1167,7 +1167,7 @@ void CTimerEvent_Standby::saveToConfig(CConfigFile *config)
|
||||
//=============================================================
|
||||
CTimerEvent_Record::CTimerEvent_Record(time_t announce_Time, time_t alarm_Time, time_t stop_Time,
|
||||
t_channel_id channel_id,
|
||||
event_id_t epgID,
|
||||
t_event_id epg_id,
|
||||
time_t epg_starttime, unsigned char apids,
|
||||
CTimerd::CTimerEventRepeat evrepeat,
|
||||
uint32_t repeatcount, const std::string &recDir,
|
||||
@@ -1175,7 +1175,7 @@ CTimerEvent_Record::CTimerEvent_Record(time_t announce_Time, time_t alarm_Time,
|
||||
bool channel_ci) : //NI
|
||||
CTimerEvent(getEventType(), announce_Time, alarm_Time, stop_Time, evrepeat, repeatcount)
|
||||
{
|
||||
eventInfo.epgID = epgID;
|
||||
eventInfo.epg_id = epg_id;
|
||||
eventInfo.epg_starttime = epg_starttime;
|
||||
eventInfo.channel_id = channel_id;
|
||||
eventInfo.apids = apids;
|
||||
@@ -1188,7 +1188,7 @@ CTimerEvent_Record::CTimerEvent_Record(time_t announce_Time, time_t alarm_Time,
|
||||
autoAdjustToEPG = _autoAdjustToEPG;
|
||||
recordingSafety = _recordingSafety;
|
||||
CShortEPGData epgdata;
|
||||
if (CEitManager::getInstance()->getEPGidShort(epgID, &epgdata))
|
||||
if (CEitManager::getInstance()->getEPGidShort(epg_id, &epgdata))
|
||||
epgTitle=epgdata.title;
|
||||
|
||||
}
|
||||
@@ -1199,8 +1199,8 @@ CTimerEvent_Record::CTimerEvent_Record(CConfigFile *config, int iId):
|
||||
std::stringstream ostr;
|
||||
ostr << iId;
|
||||
std::string id=ostr.str();
|
||||
eventInfo.epgID = config->getInt64("EVENT_INFO_EPG_ID_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_ID_%s %ld\n",id.c_str(),(long)eventInfo.epgID);
|
||||
eventInfo.epg_id = config->getInt64("EVENT_INFO_EPG_ID_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_ID_%s %ld\n",id.c_str(),(long)eventInfo.epg_id);
|
||||
|
||||
eventInfo.epg_starttime = (long int)config->getInt64("EVENT_INFO_EPG_STARTTIME_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_STARTTIME_%s %ld\n",id.c_str(),(long)eventInfo.epg_starttime);
|
||||
@@ -1279,8 +1279,8 @@ void CTimerEvent_Record::saveToConfig(CConfigFile *config)
|
||||
std::stringstream ostr;
|
||||
ostr << eventID;
|
||||
std::string id=ostr.str();
|
||||
config->setInt64("EVENT_INFO_EPG_ID_"+id, eventInfo.epgID);
|
||||
dprintf("set EVENT_INFO_EPG_ID_%s to %ld\n",id.c_str(),(long)eventInfo.epgID);
|
||||
config->setInt64("EVENT_INFO_EPG_ID_"+id, eventInfo.epg_id);
|
||||
dprintf("set EVENT_INFO_EPG_ID_%s to %ld\n",id.c_str(),(long)eventInfo.epg_id);
|
||||
|
||||
config->setInt64("EVENT_INFO_EPG_STARTTIME_"+id, eventInfo.epg_starttime);
|
||||
dprintf("set EVENT_INFO_EPG_STARTTIME_%s to %ld\n",id.c_str(),(long)eventInfo.epg_starttime);
|
||||
@@ -1310,8 +1310,8 @@ void CTimerEvent_Record::saveToConfig(CConfigFile *config)
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::Reschedule()
|
||||
{
|
||||
// clear epgID on reschedule
|
||||
eventInfo.epgID = 0;
|
||||
// clear epg_id on reschedule
|
||||
eventInfo.epg_id = 0;
|
||||
eventInfo.epg_starttime = 0;
|
||||
epgTitle="";
|
||||
CTimerEvent::Reschedule();
|
||||
@@ -1329,22 +1329,22 @@ void CTimerEvent_Record::getEpgId()
|
||||
{
|
||||
if ( e->startTime <= check_time && (e->startTime + (int)e->duration) >= check_time)
|
||||
{
|
||||
eventInfo.epgID = e->eventID;
|
||||
eventInfo.epg_id = e->eventID;
|
||||
eventInfo.epg_starttime = e->startTime;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(eventInfo.epgID != 0)
|
||||
if(eventInfo.epg_id != 0)
|
||||
{
|
||||
CShortEPGData epgdata;
|
||||
if (CEitManager::getInstance()->getEPGidShort(eventInfo.epgID, &epgdata))
|
||||
if (CEitManager::getInstance()->getEPGidShort(eventInfo.epg_id, &epgdata))
|
||||
epgTitle=epgdata.title;
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------
|
||||
void CTimerEvent_Record::Refresh()
|
||||
{
|
||||
if (eventInfo.epgID == 0)
|
||||
if (eventInfo.epg_id == 0)
|
||||
getEpgId();
|
||||
}
|
||||
//------------------------------------------------------------
|
||||
@@ -1434,15 +1434,15 @@ void CTimerEvent_Zapto::getEpgId()
|
||||
{
|
||||
if ( e->startTime < check_time && (e->startTime + (int)e->duration) > check_time)
|
||||
{
|
||||
eventInfo.epgID = e->eventID;
|
||||
eventInfo.epg_id = e->eventID;
|
||||
eventInfo.epg_starttime = e->startTime;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(eventInfo.epgID != 0)
|
||||
if(eventInfo.epg_id != 0)
|
||||
{
|
||||
CShortEPGData epgdata;
|
||||
if (CEitManager::getInstance()->getEPGidShort(eventInfo.epgID, &epgdata))
|
||||
if (CEitManager::getInstance()->getEPGidShort(eventInfo.epg_id, &epgdata))
|
||||
epgTitle=epgdata.title;
|
||||
}
|
||||
}
|
||||
@@ -1453,12 +1453,12 @@ void CTimerEvent_Zapto::getEpgId()
|
||||
//=============================================================
|
||||
CTimerEvent_NextProgram::CTimerEvent_NextProgram(time_t announce_Time, time_t alarm_Time, time_t stop_Time,
|
||||
t_channel_id channel_id,
|
||||
event_id_t epgID,
|
||||
t_event_id epg_id,
|
||||
time_t epg_starttime, CTimerd::CTimerEventRepeat evrepeat,
|
||||
uint32_t repeatcount) :
|
||||
CTimerEvent(CTimerd::TIMER_NEXTPROGRAM, announce_Time, alarm_Time, stop_Time, evrepeat,repeatcount)
|
||||
{
|
||||
eventInfo.epgID = epgID;
|
||||
eventInfo.epg_id = epg_id;
|
||||
eventInfo.epg_starttime = epg_starttime;
|
||||
eventInfo.channel_id = channel_id;
|
||||
}
|
||||
@@ -1469,8 +1469,8 @@ CTimerEvent(CTimerd::TIMER_NEXTPROGRAM, config, iId)
|
||||
std::stringstream ostr;
|
||||
ostr << iId;
|
||||
std::string id=ostr.str();
|
||||
eventInfo.epgID = config->getInt64("EVENT_INFO_EPG_ID_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_ID_%s %ld\n",id.c_str(),(long)eventInfo.epgID);
|
||||
eventInfo.epg_id = config->getInt64("EVENT_INFO_EPG_ID_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_ID_%s %ld\n",id.c_str(),(long)eventInfo.epg_id);
|
||||
|
||||
eventInfo.epg_starttime = config->getInt64("EVENT_INFO_EPG_STARTTIME_"+id);
|
||||
dprintf("read EVENT_INFO_EPG_STARTTIME_%s %ld\n",id.c_str(),(long)eventInfo.epg_starttime);
|
||||
@@ -1507,8 +1507,8 @@ void CTimerEvent_NextProgram::saveToConfig(CConfigFile *config)
|
||||
std::stringstream ostr;
|
||||
ostr << eventID;
|
||||
std::string id=ostr.str();
|
||||
config->setInt64("EVENT_INFO_EPG_ID_"+id,eventInfo.epgID);
|
||||
dprintf("set EVENT_INFO_EPG_ID_%s to %ld\n",id.c_str(),(long)eventInfo.epgID);
|
||||
config->setInt64("EVENT_INFO_EPG_ID_"+id,eventInfo.epg_id);
|
||||
dprintf("set EVENT_INFO_EPG_ID_%s to %ld\n",id.c_str(),(long)eventInfo.epg_id);
|
||||
|
||||
config->setInt64("EVENT_INFO_EPG_STARTTIME_"+id,eventInfo.epg_starttime);
|
||||
dprintf("set EVENT_INFO_EPG_STARTTIME_%s to %ld\n",id.c_str(),(long)eventInfo.epg_starttime);
|
||||
@@ -1523,7 +1523,7 @@ void CTimerEvent_NextProgram::saveToConfig(CConfigFile *config)
|
||||
void CTimerEvent_NextProgram::Reschedule()
|
||||
{
|
||||
// clear eogId on reschedule
|
||||
eventInfo.epgID = 0;
|
||||
eventInfo.epg_id = 0;
|
||||
eventInfo.epg_starttime = 0;
|
||||
CTimerEvent::Reschedule();
|
||||
}
|
||||
|
Reference in New Issue
Block a user