edit4ever / script.module.zap2epg

zap2epg - EPG grabber for USA/Canada
GNU General Public License v3.0
41 stars 25 forks source link

EPG not updating, unknown label reference or genre category #56

Closed squirtbrnr closed 7 months ago

squirtbrnr commented 7 months ago

I'm getting an error that is causing EPG to not be updated. This repo looks abandoned, but I'm hoping someone can help fix it. It looks like there's a new label or category in the EPG data titled "Documentary" and it's causing the EPG parser to fail. Here's the error in my tvheadend logs:

[  ERROR] xmltv: /usr/bin/tv_grab_zap2epg: htsmsg_xml_deserialize error Unknown label referense: "& literature</category>   <category lang="en">Documentary</category>  </p
[WARNING] xmltv: /usr/bin/tv_grab_zap2epg: grab returned no data

It seems this issue may be an unhandled genre category, but not sure if it's "literature" or "Documentary" as the error lists both.

squirtbrnr commented 7 months ago

fixed it by properly escaping html "&". this can be done a couple ways, either html.escape(genre, quote=True) or re.sub('&', '&amp;', genre). But the answer is there was an unhandled character causing issues.