Open edit4ever opened 8 years ago
when grabbed from the TVGuide site with extras (-z -D) the xml is malformed.
it will wite <url>http://some.link />
and therefore break the file
i found the error in zap2xml.py on line 1449
replace
fh.write("\t\t<url>" + programs[p]["url"] + "\" />\n")
with
fh.write("\t\t<url>" + programs[p]["url"] + "\"</url>\n")
I did manage to check the file for syntax problems, but not for validity against the DTD seems to work now
First - great job on the tvguide icons...they're super tiny, but it was great to see how you went about extracting them!
As an FYI - It seems that setting tvguide as the source is not working for a tvheadend based system. Not sure why as the xmltv file is being generated properly and looks good. Tvheadend reads that channels properly but won't load the program info in. I've had another user run into a similar issue and changin back to zap2it worked for him as well.
This is likely a tvheadend issue since the xmltv file seems to look right (all data is being parsed an written out) but I though I'd ask if you'd seen any similar issues.
BTW - not sure if you saw the -X option that I added to the version on my repo. It adds the option to include additional information in the description field for users whose systems don't show things like NEW/LIVE/CC/air date/etc. Unfortuantely, in order to setup my repo for the kodi addon - your zap2xml.py file is no longer linked as upstream to mine, so I haven't submitted a pull request. You can take a look and see if you want to incorporate or not: https://github.com/edit4ever/script.module.zap2xml
Thanks again for your awesome work on this!!