you can get this directly from CPVRChannel: https://github.com/xbmc/xbmc/blob/master/xbmc/pvr/channels/PVRChannel.h#L387