Posts: 838
Joined: Jul 2007
Reputation:
6
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?
Posts: 2,274
Joined: Feb 2009
Reputation:
30
opdenkamp
Retired Team-Kodi Member
Posts: 2,274
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.
Posts: 838
Joined: Jul 2007
Reputation:
6
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.
Posts: 2,274
Joined: Feb 2009
Reputation:
30
opdenkamp
Retired Team-Kodi Member
Posts: 2,274
2011-05-29, 11:31
(This post was last modified: 2011-05-29, 11:37 by opdenkamp.)
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.