listfolder errors in new beta1
#1
I get the below error in the Beta. My script works in a month or two old nightly build of frodo. What has changed in the API that could generate this error in my script? The path that it errors out on is 'C:/*.*' but in the log it shows up as 'c%3a%2f%2f/*.*'

Seems to be some character coding error? Code is here: http://pastebin.com/0S2X9RdV



12:16:23 T:2012 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.WindowsError'>
Error Contents: (3, 'The system cannot find the path specified', 'c%3a%2f%2f/*.*')
Traceback (most recent call last):
File "C:\XBMC\addons\MarkFolder.xayide.com\default.py", line 93, in <module>
listFolderContent(sys.argv[2][6:])
File "C:\XBMC\addons\MarkFolder.xayide.com\default.py", line 9, in listFolderContent
folderContents = os.listdir(rootFolder)
WindowsError: (3, 'The system cannot find the path specified', 'c%3a%2f%2f/*.*')
-->End of Python script error report<--
12:16:23 T:2012 INFO: Python script stopped
Reply
#2
Your URL options must be URL encoded is your problem. XBMC decodes then encodes as it's parsing, thus if you don't have them setup encoded to begin with, things will break.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks, its working now. I had to use unquote and quote_plus
Reply

Logout Mark Read Team Forum Stats Members Help
listfolder errors in new beta10