anxdpanic / plugin.video.composite_for_plex

Composite allows media and metadata stored in the Plex Media Server (PMS) to be viewed and played using the Kodi 16+ interface
https://composite.page.link/forum
GNU General Public License v2.0
43 stars 11 forks source link

Context Menu Extension in Widgets not working in Kodi 19 Matrix #203

Closed FXB78 closed 5 months ago

FXB78 commented 3 years ago

Context

Please provide any relevant information about your setup


Expected Behavior

Mark As Watched via Context Menu in a Widget.


Current Behavior

Kodi throws an error message:

2021-03-29 17:46:57.237 T:5276    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'IndexError'>
                                                   Error Contents: list index out of range
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.composite_for_plex/resources/lib/composite_addon/context_menu_watched.py", line 107, in <module>
                                                       metadata_id = [int(part) for part in plex_url.split('/') if part.isdigit()][-1]
                                                   IndexError: list index out of range
                                                   -->End of Python script error report<--

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Select Composite/Mark as Watched from a Widget.