-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: seek for a non standard header in EPG xml files #896
Comments
Huh? If the XML file is not valid there is no way to parse it? This error is from the parser. Can you provide the XML file? There is most definitely a standard for XML files. |
Hello
Here is the xmltv file. There are other EPG sources available on internet providing such files
The parser is rejecting it.
If you add up <?xml version="1.0" encoding="UTF-8" ?> as the first line in the file, the parser works well
Best regards
PCH

… Le 24 sept. 2024 à 08:33, phunkyfish ***@***.***> a écrit :
Huh?
If the XML file is not valid there is no way to parse it? This error is from the parser.
Can you provide the XML file? There is most definitely a standard for XML files.
—
Reply to this email directly, view it on GitHub <#896 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAND2Q6LSR7P644RJODSI2TZYEBS3AVCNFSM6AAAAABOW5EFDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZQGMYTAOJRGY>.
You are receiving this because you authored the thread.
|
Ok, but those files are broken. I’m sorry but I don’t see this as a bug. |
Why do you say it is broken?It works perfectly in Plex or other iOS iptv app. PchLe 24 sept. 2024 à 21:23, phunkyfish ***@***.***> a écrit :
Ok, but those files are broken. I’m sorry but I don’t see this as a bug.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Because they are invalid files. I didn’t see an XML file attached to the issue, so I can’t look at it myself. |
I send it again as attachment, gzip in case oft was too big

… Le 24 sept. 2024 à 21:34, phunkyfish ***@***.***> a écrit :
Because they are invalid files. I didn’t see an XML file attached to the issue, so I can’t look at it myself.
—
Reply to this email directly, view it on GitHub <#896 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAND2QY3I2DAZFLLHK77H6TZYG5DPAVCNFSM6AAAAABOW5EFDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGIYDIOJTGA>.
You are receiving this because you authored the thread.
|
You might need to upload the file, it’s might not work via email response. |
Done!PchLe 24 sept. 2024 à 22:40, phunkyfish ***@***.***> a écrit :
You might need to upload the file, it’s might not work via email response.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This xmltv file is valid and contains the leading |
Yes I did. EPG provider send it without the first Line. PchLe 25 sept. 2024 à 19:01, phunkyfish ***@***.***> a écrit :
es.xml.gz
This xmltv file is valid and contains the leading <?xml version="1.0" encoding="UTF-8"?> tag. So I don't see what the problem is. Or did you add the tag to the file?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Is the file generated by an addon? can you send me the file without any modifications? |
this file is generated by Xteve (IPTV plugin). working fine in Plex or Emby. |
Thanks for the file, it helped with testing. This had nothing to do with the parser at all. It would in fact accept a file without the leading There was a check for tarred archives prior to parsing that looks for the Please test: |
After this update I get no epg at all. Before launching Kodi I deleted Epg19.db to be sure to start fresh and these are the logs for 22.2.0 (working) and 22.2.1 (no EPG at all): This happens with the external epg I used for this test (https://www.tdtchannels.com/epg/TV.xml) and my own customized xml. From the 22.2.1 log:
|
ok, I’ll test using that xml file later on. Do you have some sample M3U entries I can use to test it works correctly? The URLs can be obfuscated, I don’t need anything to play, just load in the UI. |
This is what I'm using for the test:
|
Oh, I think I found the problem. Can try this testbuild? |
Working now:
Many thanks. |
Great, I've released that now. |
error parsing xmltv file when is not in first line (which is not standard now
error : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadEPG - Unable parse EPG XML: Start-end tags mismatch, offset: 0:
The text was updated successfully, but these errors were encountered: