Skip to content

Commit

Permalink
GetChannelGroupMembers: add iSubChannelNumber support (PVR API 5.8.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
margro committed Aug 15, 2018
1 parent bea551a commit 2f26ede
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pvrclient-mediaportal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,15 @@ PVR_ERROR cPVRClientMediaPortal::GetChannelGroupMembers(ADDON_HANDLE handle, con
if( channel.Parse(data) )
{
tag.iChannelUniqueId = channel.UID();
tag.iChannelNumber = channel.ExternalID();
// tag.iSubChannelNumber = ...; TODO: Addon API 5.8.0
if (channel.MajorChannelNr() == -1)
{
tag.iChannelNumber = channel.ExternalID();
}
else
{
tag.iChannelNumber = channel.MajorChannelNr();
tag.iSubChannelNumber = channel.MinorChannelNr();
}
PVR_STRCPY(tag.strGroupName, group.strGroupName);


Expand Down

0 comments on commit 2f26ede

Please sign in to comment.