First of all, thanks a lot for the DIY and HGTV add-on, my girlfriend loves them!
Recently they updated to 1.0.3 and 1.0.6 respectively, and they stopped working. I fiddled with them for a bit and thought I'd post what I found in case others have the same problem. The error in the log was as follows:
Code:
12:18:21 T:139669417211648 NOTICE: [plugin.video.diy-1.0.3]: Request URL: http://www.diynetwork.com/diy/channel/xml/0,,21422,00.xml
12:18:21 T:139669417211648 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
File "/home/rpress/.xbmc/addons/plugin.video.diy/default.py", line 237, in <module>
display_show(params['url'], params['iconimage'])
File "/home/rpress/.xbmc/addons/plugin.video.diy/default.py", line 121, in display_show
add_episodes(eval(cache.get('current_base')))
File "/home/rpress/.xbmc/addons/plugin.video.diy/default.py", line 175, in add_episodes
path = i[1].replace('http://wms.scrippsnetworks.com','').replace('.wmv','')
AttributeError: 'NoneType' object has no attribute 'replace'
-->End of Python script error report<--
I'm running Ubuntu 13.10 and it seems there is some problem with python-lxml. It is not handling the CDATA tags correctly, and instead of converting to plaintext is just erases them. I was able to disable lxml in BeautifulSoup4 and that worked. I could not uninstall python-lxml as other Ubuntu stuff needed it.
The file needing modification is "~/.xbmc/addons/script.module.beautifulsoup4/lib/bs4/builder/__init__.py" and just comment out the lxml part at the end of the file (last 6 lines).