primaeval / plugin.video.pvr.plugin.player

5 stars 3 forks source link

Error when browsing for stream #5

Open kekukui opened 4 years ago

kekukui commented 4 years ago

In some addons, pluginplayer fails to add a working stream:

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 rangeTraceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.pvr.plugin.player/main.py", line 835, in <module> 
plugin.run()File "/storage/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 345, in
 run items = self._dispatch(self.request.path)File "/storage/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py",
 line 319, in _dispatch listitems = view_func(**items)
   File "/storage/.kodi/addons/plugin.video.pvr.plugin.player/main.py", line 679, in choose_stream
 link = links[selected]
 IndexError: list index out of range
 -->End of Python script error report<--

Note: It is possible to extend Kodi's context menu, so when the user invokes the context menu on a channel within some addon, where it now says 'add to favorites' it could also say 'add to PVR plugin player'. Then it would not be necessary to run the setup wizard for each channel: you could add multiple channels to PVR plugin player without exiting the addon. Just an idea.