2012-12-05, 09:03
My TMZ addon stop working recently. I started digging around and noticed that the web pages downloaded are scrambled (or encrypted). This is the first time I came across this issue.
XBMC returns:TypeError: argument 1 must be string without null bytes, not str
python returns: random text
I also tried curl and got random text. Wireshark didn't help either.
If anyone has time, please take a look and let me know what you find.
Code:
import urllib2
req = urllib2.Request('http://tmz.com/videos')
content = urllib2.urlopen(req)
html = content.read()
content.close()
print html
XBMC returns:TypeError: argument 1 must be string without null bytes, not str
python returns: random text
I also tried curl and got random text. Wireshark didn't help either.
If anyone has time, please take a look and let me know what you find.