2013-01-01, 18:55
Got that script error on my pi as well.
The relevant Log-Lines are as follows:
After tracking the relvant code down I commented/uncommented the following two lines 3515+3516:
Original:
Into
And it works on my pi now. The url request with the '%2f' instead of '/' seems to make it impossible to parse the url correctly by url.split in geturl.
Trust this helps.
The relevant Log-Lines are as follows:
Code:
15:57:00 T:2805941344 NOTICE: PleXBMC -> get_params: Returning: {'url': 'http%3a2f%2f192.168.178.25%3a32400%2flibrary%2fsections%2f1%2fall', 'mode': '2'}
15:57:00 T:2805941344 NOTICE: PleXBMC -> {'url': 'http%3a%2f%2f192.168.178.25%3a32400%2flibrary%2fsections%2f1%2fall', 'mode': '2'}
15:57:00 T:2805941344 NOTICE: PleXBMC -> Mode: 2
15:57:00 T:2805941344 NOTICE: PleXBMC -> URL: http%3a%2f%2f192.168.178.25%3a32400%2flibrary%2fsections%2f1%2fall
15:57:00 T:2805941344 NOTICE: == ENTER: Movies() ==
15:57:00 T:2805941344 NOTICE: == ENTER: getURL ==
15:57:00 T:2805941344 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 3559, in <module>
Movies(url)
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 672, in Movies
html=getURL(url)
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 199, in getURL
server=url.split('/')[2]
IndexError: list index out of range
-->End of Python script error report<--
15:57:00 T:3043065856 ERROR: GetDirectory - Error getting plugin://plugin.video.plexbmc/?mode=2&url=http%3a%2f%2f192.168.178.25%3a32400%2flibrary%2fsections%2f1%2fall
15:57:00 T:3043065856 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexbmc/?mode=2&url=http%3a%2f%2f192.168.178.25%3a32400%2flibrary%2fsections%2f1%2fall) failed
After tracking the relvant code down I commented/uncommented the following two lines 3515+3516:
Original:
Code:
#url=urllib.unquote_plus(params["url"])
url=params['url']
Into
Code:
url=urllib.unquote_plus(params["url"])
#url=params['url']
And it works on my pi now. The url request with the '%2f' instead of '/' seems to make it impossible to parse the url correctly by url.split in geturl.
Trust this helps.