remotetimers: switch from full channelid to short channelid

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
TangoCash
2019-12-31 15:57:01 +01:00
committed by GetAway
parent ec780d8401
commit 6df729b954
2 changed files with 9 additions and 2 deletions

View File

@@ -1510,7 +1510,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);
@@ -3009,6 +3009,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)