Jump to content

`global name 'default' is not defined` after switching Kodi profiles


Recommended Posts

Hey, this started happening maybe a week ago for me, am testing the beta version of the plugin (currently 3.1.31a). Often after switching Kodi profiles playback won't work and this traceback ends up in the logs:


22:41:15.232 T:3146773408  NOTICE: EMBY.entrypoint.default -> path: ?dbid=…&mode=play&id=…&filename=… params: {
                                                "dbid": "…", 
                                                "filename": "…", 
                                                "mode": "play", 
                                                "id": "…"
22:41:15.237 T:3146773408  NOTICE: EMBY.downloader -> ---[ contact MU-TH-UR 6000/GetItem ]
22:41:15.258 T:3146773408  NOTICE: EMBY.downloader -> Abandon mission! A black hole just swallowed [ GetItem/… ]
22:41:15.264 T:3146773408   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.NameError'>
                                            Error Contents: global name 'default' is not defined
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby.tvshows/default.py", line 29, in <module>
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/entrypoint/default.py", line 71, in __init__
                                                item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/downloader.py", line 348, in get
                                                return default
                                            NameError: global name 'default' is not defined
                                            -->End of Python script error report<--
22:41:15.669 T:4095168512   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.emby.tvshows/…/?dbid=…&mode=play&id=…&filename=…]
Logging out and straight back in fixes this.
  • Like 1
Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...