mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
remotetimers: switch from full channelid to short channelid
Origin commit data
------------------
Commit: 492fd5955d
Author: TangoCash <eric@loxat.de>
Date: 2019-12-31 (Tue, 31 Dec 2019)
This commit is contained in:
@@ -795,7 +795,7 @@ bool CTimerList::RemoteBoxChanExists(t_channel_id channel_id)
|
||||
|
||||
bool CTimerList::LocalBoxChanExists(t_channel_id channel_id)
|
||||
{
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel48(channel_id);
|
||||
if (channel)
|
||||
return true;
|
||||
else
|
||||
@@ -884,6 +884,9 @@ void CTimerList::RemoteBoxTimerList(CTimerd::TimerList &rtimerlist)
|
||||
rtimer.epg_starttime = (time_t) atoll(remotetimers[i]["start"][0].get("digits","").asString().c_str());
|
||||
sscanf(remotetimers[i].get("epg_id","").asString().c_str(), SCANF_CHANNEL_ID_TYPE, &rtimer.epg_id);
|
||||
sscanf(remotetimers[i].get("channel_id","").asString().c_str(), SCANF_CHANNEL_ID_TYPE, &rtimer.channel_id);
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel48(rtimer.channel_id);
|
||||
if(channel)
|
||||
rtimer.channel_id = channel->getChannelID();
|
||||
strncpy(rtimer.epgTitle,remotetimers[i].get("title","").asString().c_str(),sizeof(rtimer.epgTitle));
|
||||
rtimer.epgTitle[sizeof(rtimer.epgTitle) - 1] = 0;
|
||||
if (remotetimers[i]["audio"].get("apids_conf","").asString() == "true")
|
||||
|
@@ -1522,7 +1522,7 @@ void CControlAPI::GetChannelCGI(CyhookHandler *hh)
|
||||
if (channel_id != 0)
|
||||
{
|
||||
NeutrinoAPI->GetChannelEvents();
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel48(channel_id);
|
||||
if (channel)
|
||||
{
|
||||
result = _GetBouquetWriteItem(hh, channel, -1, -1);
|
||||
@@ -3022,6 +3022,10 @@ void CControlAPI::doNewTimer(CyhookHandler *hh)
|
||||
else
|
||||
eventinfo.channel_id = NeutrinoAPI->ChannelNameToChannelId(hh->ParamList["channel_name"]);
|
||||
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel48(eventinfo.channel_id);
|
||||
if(channel)
|
||||
eventinfo.channel_id = channel->getChannelID();
|
||||
|
||||
std::string _rec_dir = hh->ParamList["rec_dir"];
|
||||
void *data=NULL;
|
||||
if(type == CTimerd::TIMER_RECORD)
|
||||
|
Reference in New Issue
Block a user