M3U and XMLTV data don't jive
#1
I am attempting to use this plugin with my HDHomeRun PRIME. I do not wish to use SiliconDust's Kodi application, so please do not suggest that as a workaround. Tongue

I am getting my XMLTV file from Zap2It, and it's channel entries look a bit like this:

Code:
<channel id="I11420.labs.zap2it.com">
    <display-name>WESH</display-name>
    <display-name>4 WESH</display-name>
    <display-name>4</display-name>
</channel>
<channel id="I12828.labs.zap2it.com">
    <display-name>WRBW</display-name>
    <display-name>5 WRBW</display-name>
    <display-name>5</display-name>
</channel>

According to the IPTV Simple Client Wiki:

Quote:tvg-name is value of display-name in EPG

I'm auto-generating my M3U playlist via a small PHP library I developed on my Synology NAS. It opens up the HDHomeRun's lineup.json and spits out an M3U playlist I point this addon at. My playlist looks something like this:

Code:
#EXTINF:-1 tvg-name="4" tvg-logo="WESH", 4 WESH
http://192.168.1.205:5004/auto/v4
#EXTINF:-1 tvg-name="5" tvg-logo="WRBW", 5 WRBW
http://192.168.1.205:5004/auto/v5

In Kodi, when I look at "All Channels," it finds all the channels from M3U playlist (about 248). However, the EPG only shows 48 records.

I've identified that some channel names from the HDHomeRun PRIME don't jive with the channel names from Zap2It. For example:

Code:
<channel id="I59337.labs.zap2it.com">
    <display-name>AMC HD</display-name>
    <display-name>1355 AMC HD</display-name>
    <display-name>1355</display-name>
</channel>

#EXTINF:-1 tvg-name="1355" tvg-logo="AMCHD", AMCHD
http://192.168.1.205:5004/auto/v1355

I believe this is the problem, even thought it shouldn't be because I'm telling the M3U playlist to look for a `display-name` of the numeric value, not the channel name. Additionally, I could use PHP to look for "HD" and add a space before it, but some channel names are even more complicated than that. I want to key off the number and only the number.

Something really fishy is going on and I'm so close I can almost taste victory. Can anyone give me another perspective on this? I'm at my wits end! Thanks!
Reply
#2
I don't believe it's possible to go off of the number. I had to manually correct most names in my playlist file when I did the same thing you are doing.
Reply
#3
I actually worked around this.

In my PHP script, I open up the XMLTV.xml file and make an inventory of all the channels by their number and channel ID.

Then, when I open up and lineup.json file and generate the M3U, I reference the XMLTV array I created and use the correct ID based on the channel number.

So now my M3U file looks like:

Code:
#EXTINF:-1 tvg-id="I11420.labs.zap2it.com" tvg-name="4 WESH" tvg-logo="WESH", 4 WESH
http://192.168.1.205:5004/auto/v4
#EXTINF:-1 tvg-id="I12828.labs.zap2it.com" tvg-name="5 WRBW" tvg-logo="WRBW", 5 WRBW
http://192.168.1.205:5004/auto/v5
Reply
#4
oh nice!
Reply

Logout Mark Read Team Forum Stats Members Help
M3U and XMLTV data don't jive0