Open ActivateDZA opened 1 year ago
This is going to filter everything out and leave you with no channels:
Filter = "YOUR_FILTER_REGULAR_EXPRESSION"
The error seems like the EPG XML is malformed; it's expected to look like:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="S" generator-info-url="http://REDACTED/">
<channel id="cookingchannel.us">
<display-name>COOKING CHANNEL</display-name>
<icon src="http://REDACTED/logos/Cooking(1).png" />
</channel>
...
It appears that yours doesn't contain that tv
element
This is going to filter everything out and leave you with no channels:
Filter = "YOUR_FILTER_REGULAR_EXPRESSION"
The error seems like the EPG XML is malformed; it's expected to look like:
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE tv SYSTEM "xmltv.dtd"> <tv generator-info-name="S" generator-info-url="http://REDACTED/"> <channel id="cookingchannel.us"> <display-name>COOKING CHANNEL</display-name> <icon src="http://REDACTED/logos/Cooking(1).png" /> </channel> ...
It appears that yours doesn't contain that
tv
element
Hi chazlarson I have created a filter but it was still doing the same thing
The EPG XML file that I got contains the following:
<xml generator-info-name="IPTV" generator-info-url="REDACTED.xyz">
<channel id="bbc1.uk">
<display-name>UK: BBC ONE FHD</display-name>
<icon src="https://REDACTED"/>
</channel>
<channel id="bbc1.uk">
<display-name>UK: BBC ONE FHD (H265)</display-name>
<icon src="https://REDATED"/>
</channel>
I have contacted the supplier but I am sure they will say that is how they do it. Is there no way that telly can accept xml? VLC works just fine with this EPG XML file.
Hi chazlarson I have created a filter but it was still doing the same thing
All I know is what's presented here.
Is there no way that telly can accept xml? VLC works just fine with this EPG XML file.
Telly does accept XML; it just expects that XML to be structured in a particular way. In your example, it seems that what telly is looking for as the tv
element has been renamed to xml
, where the expected format has an xml
element wrapping the tv
element.
Of course telly could be modified to accept whatever; it's only typing. However, the existing code works with EPG XML from every IPTV provider tested over the years along with independent XML providers.
I'd accept a PR that made this change, but probably won't put any time into addressing it myself.
Thank you for the answer @chazlarson can you point in the right direction to dev the change?
I suspect its within this code? https://github.com/tellytv/telly/blob/dev/internal/xmltv/xmltv.go
Yep; you can see in that directory the format example from the source; it appears that what you have there is not conforming to the standard:
telly release with the issue:
version=1.1.0.6, branch=dev, revision=741108cd2100cf9f4d3a13f771d1ebe5132baae6
Last working telly release (if known): N/A
Operating environment (Docker/Windows/Linux/QNAP, etc.): Docker on Linux Ubuntu 22.04
Description of problem: I am trying to use telly but I have an error message that says expected element type tv but have xml. I can use VLC player to run the file and play the tv channel but cannot get it to work on telly. Is there a way to change this or do I need to contact the vendor?
Contents of
telly.config.toml
[if you're using a version above 1.1]:Docker run command used to run telly [if applicable]: docker compose up -d telly
telly or docker log:
Additional information: