From 5bf2009b37c9f2a97b9d3a8c931bc0816779c70d Mon Sep 17 00:00:00 2001 From: matke-84 <74268331+matke-84@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:21:14 +0200 Subject: [PATCH] Fix bug These lines are necessary because the plugin in some situations crashes or doesn't send a proposal to the edit field after clicking. --- plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugin.py b/plugin.py index 2cad226..6ab57e3 100644 --- a/plugin.py +++ b/plugin.py @@ -31,6 +31,14 @@ def start_info_actions(infos, params): if info == 'autocomplete': listitems = AutoCompletion.get_autocomplete_items(params["id"], params.get("limit", 10)) elif info == 'selectautocomplete': + if params.get("handle"): + xbmcplugin.setResolvedUrl(handle=int(params.get("handle")), + succeeded=False, + listitem=xbmcgui.ListItem()) + try: + window = xbmcgui.Window(10103) + except Exception: + return None xbmc.executebuiltin('Dialog.Close(busydialog)') xbmc.sleep(500) get_kodi_json(