nz.ontv.cc xml parser errors?
|
|
Hi, I just found a source of XML TV data for New Zealand (http://nz.ontv.uni.cc/ and click the XML button down the bottom). I have set up eep to use xmltv data and it seems to mostly work except that it doesn’t actually show any program data. Also the channels are weird, with multiples and missing ones. When I do curl http://data.titantv.com/dataservice.asmx/Reques… I get the data but with a lot of parser errors at the top: <?xml version=”1.0” encoding=”utf-8”?> |
|
|
That XMLTV data is invalid XML. The channel tags found in the XML should not contain this: xmlns=”xmltv” You should tell the webmaster of that website to remove those. Or you can remove them manually (or automatically, if you know your way around shell scripting or AppleScript). If should then import fine in EEP. (Make sure to disable the cache, or wipe the content of the cache folder when you try to fix this.) |
|
|
Thanks for the quick reply. I have removed the “xmltv” entries, and now it doesn’t have the errors, but it still doesn’t work as expected. Instead of the channels you would expect from just looking at the xml file directly, you get duplicate channels. The list ends up as: Thanks for your help. |
|
|
More specifically, the channel section of the xml file looks like this: whereas the data returned by curl http://data.titantv.com/dataservice.asmx/Reques… is |
|
|
For channels such as this, there’s no way for EEP to be able to map that to a real channel number: EEP needs to be able to map each channel to a real number that appears in EyeTV. So for example, if the above channel should be mapped to channel 1 in EyeTV, you should rewrite it like this: <channel id="One" xmlns=""><display-name lang="en">One</display-name> <display-name lang="en">1</display-name> <icon src="http://nz.ontv.uni.cc/One.png" /> </channel> Add a display-name like that to each channel, and make sure none of them are repeated, and it should work fine. |