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)
if page:
if "items" in page and len(page["items"]):
event["stdout"].write(page["items"][0][
"link"])
event["stdout"].write("(" + Utils.bold(phrase) + ") " \
+ page["items"][0]["link"])
else:
event["stderr"].write("No results found")
else: