EPG_TAG.iUniqueBroadcastId as integer not possible with MythTV

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #1
The unique ID for an EPG entry used to be optional. This was handy for MythTV since there isn't a unique ID for EPG entries (or likely any other backend that surfaces an XMLTV type interface).

Can EPG_TAG.iUniqueBroadcastId either be made optional or converted to a string?

I can make a synthetic unique ID as a string by concatenating the channel ID and a text representation of the start time. Turning that into an integer is much, much harder.

What data are other add-ons using to populate this field?

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,224
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #2
tvheadend does give each tag an id, and it's used to attach epg tags to timer tags e.g.
same as with the recording index, this is used to update tags in xbmc.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
dteirney Offline
Team-XBMC Developer
Posts: 830
Joined: Jul 2007
Reputation: 6
Location: New Zealand
Post: #3
What are the options for the MythTV Addon? I can't formulate a unique integer ID for each EPG entry. Right now the MythTV Addon can't work.

MythTV links things based on "Title", "Channel ID", and "Scheduled Start Time". MythTV doesn't have any other concepts of linking things together. The scheduler in MythTV does all of the heavy lifting (so to speak) to schedule recordings.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,224
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #4
I think you just can keep a counter in the add-on and just give every tag a number. create a ticket on trac or an issue on github if you like these values to be optional instead. I'll have to look into this properly before changing it to optional.

edit:
also, have a look at the pvr api changes thread from time to time if you can, as these changes have been in the pvr tree for a while now and they were announced and discussed there.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
(This post was last modified: 2011-05-29 11:37 by opdenkamp.)
find quote