Make google.py show the search term in the results.
This commit is contained in:
parent
22ee129ca6
commit
69543c04db
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ class Module(object):
|
||||||
"num": 1, "gl": "gb"}, json=True)
|
"num": 1, "gl": "gb"}, json=True)
|
||||||
if page:
|
if page:
|
||||||
if "items" in page and len(page["items"]):
|
if "items" in page and len(page["items"]):
|
||||||
event["stdout"].write(page["items"][0][
|
event["stdout"].write("(" + Utils.bold(phrase) + ") " \
|
||||||
"link"])
|
+ page["items"][0]["link"])
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("No results found")
|
event["stderr"].write("No results found")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue