Skip to content

Commit

Permalink
check for autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Jul 20, 2015
1 parent 4aadb25 commit a811694
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/lib/Utils.py
Expand Up @@ -161,10 +161,11 @@ def get_google_autocomplete_items(search_str, youtube=False):
result = get_JSON_response(url=base_url + url,
headers=headers,
folder="Google")
for item in result[1]:
li = {"label": item,
"path": "plugin://script.extendedinfo/?info=selectautocomplete&&id=%s" % item}
listitems.append(li)
if result and len(result) > 1:
for item in result[1]:
li = {"label": item,
"path": "plugin://script.extendedinfo/?info=selectautocomplete&&id=%s" % item}
listitems.append(li)
return listitems


Expand Down

0 comments on commit a811694

Please sign in to comment.