def start_info_actions(infos, params):
for info in infos:
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
window.setFocusId(300)
get_kodi_json(method="Input.SendText",
params='{"text":"%s", "done":false}' % params.get("id"))
return None
# xbmc.executebuiltin("SendClick(103,32)")
pass_list_to_skin(data=listitems,
handle=params.get("handle", ""),
limit=params.get("limit", 20))
评论列表
文章目录