Make google.py show the search term in the results.

This commit is contained in:
dngfx 2018-09-08 22:53:31 +01:00 committed by dongfix
parent 22ee129ca6
commit 69543c04db

View file

@ -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: