2013-03-26, 18:13
@mikebzh44, I have this:
With Phil's solution:
I can access the playlist correctly, the only error is in fact the main menu.
Code:
12:54:58 T:3376 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('unexpected indent', ('C:\\Users\\Marcos\\AppData\\Roaming\\XBMC\\addons\\script.randomandlastitems\\randomandlastitems.py', 367, 4, '\t\t\t\tprint("##### SONGS=", _json_pl_response)\n'))
IndentationError: ('unexpected indent', ('C:\\Users\\Marcos\\AppData\\Roaming\\XBMC\\addons\\script.randomandlastitems\\randomandlastitems.py', 367, 4, '\t\t\t\tprint("##### SONGS=", _json_pl_response)\n'))
-->End of Python script error report<--
With Phil's solution:
Code:
13:06:06 T:5132 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('unindent does not match any outer indentation level', ('C:\\Users\\Marcos\\AppData\\Roaming\\XBMC\\addons\\script.randomandlastitems\\randomandlastitems.py', 370, 70, " _albumpath = os.path.split(_result[0]['file'])[0]\n"))
IndentationError: ('unindent does not match any outer indentation level', ('C:\\Users\\Marcos\\AppData\\Roaming\\XBMC\\addons\\script.randomandlastitems\\randomandlastitems.py', 370, 70, "_albumpath = os.path.split(_result[0]['file'])[0]\n"))
-->End of Python script error report<--
I can access the playlist correctly, the only error is in fact the main menu.