Skip to content

Cannot open any other season than the default one #1317

@mogwa1

Description

@mogwa1

Describe the bug

Opening any other season apart from the default (usually the first one from the list) results in an error.

To Reproduce

Open a series with multiple seasons, e.g. The IT Crowd or Taboe.
Then click on any other season than the first one.
This will result in "VRT MAX error".
See below for dump from the log file.

Expected behavior

Other seasons can be accessed through the interface.

Log (if available)

2026-03-09 19:54:55.193 T:1131    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'NoneType' object has no attribute 'get'
                                                   Traceback (most recent call last):
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon_entry.py", line 13, in <module>
                                                       run(argv)
                                                       ~~~^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 319, in run
                                                       plugin.run(argv)
                                                       ~~~~~~~~~~^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                       ~~~~~~~~~~~~~~^^^^^^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                       ~~~~~~~~~^^^^^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/addon.py", line 120, in programs
                                                       VRTPlayer().show_episodes_menu(program_name=program_name, season_name=season_name, end_cursor=end_cursor)
                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/vrtplayer.py", line 213, in show_episodes_menu
                                                       episodes, sort, ascending, content = get_episodes(program_name=program_name, season_name=season_name, end_cursor=end_cursor)
                                                                                            ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/var/lib/kodi/.kodi/addons/plugin.video.vrt.nu/resources/lib/api.py", line 2354, in get_episodes
                                                       paginated = api_data.get('data', {}).get('list', {}).get('paginatedItems', {})
                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                   AttributeError: 'NoneType' object has no attribute 'get'
                                                   -->End of Python script error report<--
                                                   
2026-03-09 19:54:55.314 T:1139    error <general>: GetDirectory - Error getting plugin://plugin.video.vrt.nu/programs/the-it-crowd/$byUzNXxwJS9hLXovdGhlLWl0LWNyb3dkL3xsYXp5fDB8byUzNnwvdnJ0bnUvYS16L3RoZS1pdC1jcm93ZC8yLmVwaXNvZGVzLWxpc3QuanNvbiUl
2026-03-09 19:54:55.377 T:1020    error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.vrt.nu/programs/the-it-crowd/$byUzNXxwJS9hLXovdGhlLWl0LWNyb3dkL3xsYXp5fDB8byUzNnwvdnJ0bnUvYS16L3RoZS1pdC1jcm93ZC8yLmVwaXNvZGVzLWxpc3QuanNvbiUl) failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions