Kodi Community Forum
v17 PVR Transfert Locked channel - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: v17 PVR Transfert Locked channel (/showthread.php?tid=314100)



PVR Transfert Locked channel - Gwemox - 2017-05-10

Hello,
I'm a french developper and i have a question :

Can we push a protected channel to Kodi ?
Channel protected need a pin code, it's for adult content.

Code:
PVRIptvChannel &channel = m_channels.at(iChannelPtr);
      PVR_CHANNEL xbmcChannel;
      memset(&xbmcChannel, 0, sizeof(PVR_CHANNEL));
      xbmcChannel.iUniqueId         = channel.num_ch;
      xbmcChannel.bIsRadio          = false;
      xbmcChannel.iChannelNumber    = channel.num;
      strncpy(xbmcChannel.strChannelName, channel.name.c_str(), sizeof(xbmcChannel.strChannelName) - 1);
      strncpy(xbmcChannel.strIconPath, channel.logo.c_str(), sizeof(xbmcChannel.strIconPath) - 1);
      xbmcChannel.bIsHidden         = false;
      PVR->TransferChannelEntry(handle, &xbmcChannel);

I would like :
Code:
xbmcChannel.bIsLocked = true/false;

Currently we have to manually change this option in the channel parameters, but the French laws require to block by default the adult content.

Thanks, and sorry for bad english,