typo in audio/video tutorial
#1
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.

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)
Reply
#2
Fixed. Thanks for the catch!
Reply

Logout Mark Read Team Forum Stats Members Help
typo in audio/video tutorial0