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

            #abaixo estava comentado

            xbmc.executebuiltin("SendClick(103,32)")
        pass_list_to_skin(data=listitems,
                          handle=params.get("handle", ""),
                          limit=params.get("limit", 20))
Exemplo n.º 2
0
 def get_autocomplete_labels_async(self):
     self.getControl(9091).reset()
     if self.search_str:
         listitems = AutoCompletion.get_autocomplete_items(self.search_str)
     else:
         listitems = list(self.last_searches)
     self.getControl(9091).addItems(T9Utils.create_listitems(listitems))
Exemplo n.º 3
0
 def get_autocomplete_labels_async(self):
     self.getControl(9091).reset()
     if self.search_str:
         listitems = AutoCompletion.get_autocomplete_items(self.search_str)
     else:
         listitems = list(self.last_searches)
     self.getControl(9091).addItems(utils.dict_to_listitems(listitems))
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':
            xbmc.executebuiltin('Dialog.Close(busydialog)')  # Kodi 17
            xbmc.sleep(600)
            get_kodi_json(method="Input.SendText", params='{"text":"%s", "done":false}' % params.get("id"))
            return

        pass_list_to_skin(data=listitems, handle=params.get("handle", ""), limit=params.get("limit", 20))
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':
            resolve_url(params.get("handle"))
            try:
                window_id = xbmcgui.getCurrentWindowDialogId()
                window = xbmcgui.Window(window_id)
            except:
                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))
Exemplo n.º 6
0
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':
            resolve_url(params.get("handle"))
            try:
                window_id = xbmcgui.getCurrentWindowDialogId()
                window = xbmcgui.Window(window_id)
            except:
                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))