garyan2 / epg123

Media Center Electronic Program Guide in 1-2-3
http://garyan2.github.io
MIT License
27 stars 5 forks source link

Channel number issue #29

Closed lamb0985 closed 4 months ago

lamb0985 commented 4 months ago

My issue is that my schedules direct lineup has some channels that have two different channel numbers assigned. EPG123 is unable to provide both channel numbers in the xmltv file, so this throws off the order of my channels if I choose to use epg123 as the source to pull from. For example, ESPN may be assigned to channel 32 and 302, but epg123 dismisses the 302 option so that it can only be mapped to channel 32. Is there any way to have epg123 not filter out the secondary channel from the lineup?

garyan2 commented 4 months ago

EPG123 is not filtering out any channel numbers. It is whatever you are using to read the xmltv that is ignoring the additional channel numbers for the station. If you open the xmltv file and view the contents, find the ESPN station, you will see multiple display-name elements for both channels 32 and 302. Whatever you are using only reads in the first channel number and ignores the rest.

The xmltv structure is a bit open for interpretation and recommended usage. Some generators go beyond the requirements and add additional elements like lcn (logical channel number) to address something like this, but again its effectiveness is dependent on what is consuming the file.

garyan2 commented 4 months ago

I just released 1.8.2.12 which adds lcn elements to the xmltv channels. That's the best and most I'm willing to do. The alternative would significantly increase the size of the xmltv file with duplicated listings. If whatever you are using to consume the xmltv file does not handle multiple channel numbers in the display-name or lcn elements, then you will need to ask the creators of that program to add the ability.

lamb0985 commented 4 months ago

I appreciate the quick response. I’m using Plex live DVR to map the channels, and Telly in docker as an HDHR emulator for my nextpvr HDMI capture extra. Adding the lcn did not seem to help unfortunately. Again, thank you for the work you put in to assist with this issue. I’ll keep troubleshooting.