2015-07-18, 03:28
(2015-07-18, 01:36)locomot1f Wrote: so, I downloaded the xml file.
just saved the link as...
and low and behold there's some funky escaped character in the title
<name><![CDATA[ The Open Marquee Groups (First Round)]]></name>
-----------------------------------------------------
it doesn't even show up on here. just a space.
not sure if there's a whole lot I can do on my end.
Yep, it's a little box with two zeroes on top of a 13. WTF kind of encoding is this??
Weird that I can paste it into my post, and it can be seen when I quote yours, but it doesn't show up in the thread, or on the WatchESPN website.
The problem is caused by the way xml.tree parsers the document. lxml has some kind of recovery argument that might be of use, but I'm not familiar enough with that, and there may be something similar for xml.tree, not sure. So I just hacked the crap out of the code using BeautifulSoup and it'll decode everything fine. Made a huge mess of the add-on though. lol
An easier fix is to add this after line 71:
Code:
data = data.replace('@','')
Just substitute that screwball box character for the @ in the above code snippet and the add-on will work fine and display today's replays, at least until ESPN uses some other weird character that starts this all over again.
Line 46 doesn't need to be modified if the above code change is used, but we really need to figure out a way to parse, decode, or escape those bizarre characters using xml.tree or re-write the add-on using BeautifulSoup to parse the xml.