TriggerChannelUpdate doesn't seem to create EPG for added channels

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
djp952 Offline
Junior Member
Posts: 5
Joined: Jan 2017
Reputation: 0
Post: #1
(Version: Krypton RC3 / Windows)

Hi! I've been having a problem with the PVR callbacks when new channels are added via a TriggerChannelUpdate operation. The channel(s) themselves are added into Kodi just fine and are usable, but they aren't getting the EPG created for them. So, when I subsequently call TriggerEpgUpdate for those channel(s), I get the "invalid channel or channel doesn't have an EPG" error in the logs.

Restarting Kodi (or after looking in the code it appears a suspend/wake might do it too?) fixes the problem provided the new channel(s) are reported on the first call into the addon's GetChannels() entry point.

I can't find a way to force Kodi to trigger the EPG creation for newly added channel(s) real-time. Am I overlooking something, and if so I apologize for my ignorance, or is this something that needs to be addressed in the PVR code, adding a call to create the EPG for newly added channels, perhaps in or around CPVRChannelGroupInternal::AddAndUpdateChannels?

Appreciate any assistance Wink
find quote
rmillo Offline
Junior Member
Posts: 13
Joined: Nov 2016
Reputation: 0
Location: Santa Clara/Cuba
Post: #2
Hi djp952

I'm getting this same problem. I have implemented a channel scanner on the pvr.hts addon for Tvheadend, but after it finished i can reload the cannel list but can't trigger an EPG update for the new channels.

Do you have fixed this?

Best regards
find quote