Skip to content

Error when listing markers #26

@ilgiaco

Description

@ilgiaco

Trying to browse scenes by marker throws an error.

kodi.log file prints the following log:

2025-12-16 23:48:19.910 T:3238    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'KeyError'>
                                                   Error Contents: 'last_played_at'
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.stash/addon.py", line 4, in <module>
                                                       run()
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/plugin.py", line 48, in run
                                                       router(sys.argv[2][1:])
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/plugin.py", line 148, in router
                                                       list_items(params)
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/plugin.py", line 95, in list_items
                                                       listing.list_items(params)
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/listing/listing.py", line 32, in list_items
                                                       for (item, url) in self._create_items(criterion, sort_field, sort_dir, params):
                                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/listing/scene_marker_listing.py", line 41, in _create_items
                                                       item = self._create_item(marker['scene'], title=title, screenshot=marker['screenshot'])
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.stash/resources/lib/listing/listing.py", line 95, in _create_item
                                                       'lastplayed': scene["last_played_at"]
                                                                     ~~~~~^^^^^^^^^^^^^^^^^^
                                                   KeyError: 'last_played_at'
                                                   -->End of Python script error report<--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions