2015-07-18, 14:41
(2015-07-18, 06:47)xirtamozne Wrote: Yeah, I guess I overlooked that my "fix" from yesterday was fixing a symptom and not the root cause.
Sometimes all you can do is throw a band-aid on it, until something better comes along. lol
Quote:Ideally, we would use a regular expression to fix this issue, but I had trouble getting that to work.
I struggled with this for while, trying to find a way to get the script to decode the character, or ignore it altogether, but I'm just not familiar enough with xml.etree to get it to work either. My fall-back was to use BeautifulSoup, and it works, but it would require a lot of re-writing of the code.
Quote:I created a function for this:
Nice job. Only took a few lines of code to make it work. I've added this to my addon.py and it seems to be working well on both my laptop and HTPC.