(2014-09-16, 21:46)PasiZ Wrote: (2014-08-27, 14:21)juse Wrote: How about katsomo and ruutu plugins are they working? At least most of the streams I've tried from katsomo have given me a script error.
In what platform, do you have logs of these events? How can I replicate this, could you name programs that i should try to play?
With Regards,
Pasi
OpenElec, katsomo stopped working:
13:17:21 T:139841443362560 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.katsomo/katsomo.py", line 133, in <module>
katsomo.handle()
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 54, in handle
self.playVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/xbmcutil.py", line 72, in playVideo
resolvedVideoLink = self.handleVideo(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomo.py", line 97, in handleVideo
vid = self.scrapper.scrapVideoLink(link)
File "/storage/.xbmc/addons/plugin.video.katsomo/katsomoscraper.py", line 106, in scrapVideoLink
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS
IndexError: list index out of range
-->End of Python script error report<--
Not the most elegant way to parse?
ret = str((common.parseDOM(response.read(), "source", {'type': 'video/mp4'}, ret="src"))[0]) + FFMPEG_PARAMETERS
Should check the array length before using it.