SenexCrenshaw / StreamMaster

MIT License
158 stars 20 forks source link

Kodi EPG compatibiliy issue with IPTVSimpleClient (buildin official addon) #226

Open Estarna opened 2 months ago

Estarna commented 2 months ago

When correctly configured in iptvsimple client addon in Kodi Channels are loading and playing as expected

EPG not showing.

however when converting with tool like https://xmlgrid.net/ it says that file is good and save to another format.

EPG now showing in Kodi

Stream Master 0.14.4.0

Kodi log says: 2024-04-03 15:48:20.437 T:9240 error : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - iptvsimple::Epg::LoadEPG - Unable parse EPG XML: Error parsing start element tag, offset: 0:

Estarna commented 2 months ago

Adding :

<?xml version="1.0" encoding="UTF-8" ?>

on the first line seems to make it compliant. I just added this line on top of one D/L from the SM server and... it works! I know that some players are looking for this tag. Why, I don't know.

https://www.tutorialspoint.com/xml/xml_encoding.htm

Estarna commented 2 months ago

As a temporary fix, this command line inserts the tag on the first line on the XML file generated by SM:

sed -i '1i <?xml version="1.0" encoding="UTF-8" ?>' /Some_Share_Directory/Some_EPG_File.xml

Kodi can now read the EPG XML file in IPTV Simple Client

CnC-ode commented 1 month ago

hello

am I missing something, or could you not set this flag to false?

https://github.com/SenexCrenshaw/StreamMaster/blob/5a2704bd52d6449ba418c50a8e5e5711ba2cc1d3/EPGFormatter/Program.cs#L81