2014-01-28, 01:21
There appears to be a typo in the audio/video plugin tutorial (http://wiki.xbmc.org/index.php?title=Aud...n_tutorial)
The code in section 3.2 reads as follows.
My version of XBMC complained that there is no encode method.
Code should be changed as follows.
The code in section 3.2 reads as follows.
Code:
def build_url(query):
return base_url + '?' + urllib.encode(query)
My version of XBMC complained that there is no encode method.
Code:
15:35:59 T:6256 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: 'module' object has no attribute 'encode'
Traceback (most recent call last):
Code should be changed as follows.
Code:
def build_url(query):
return base_url + '?' + urllib.urlencode(query)