Skip to content

Commit b4ee7cf

Browse files
committed
switch google image search to google custom search since the old api is disabled
1 parent 226c74b commit b4ee7cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def api_get(kind, query):
1111
return http.get_json(url % kind, q=query)
1212

1313

14-
@hook.command("googleimage", "gis", "image")
14+
#@hook.command("googleimage", "gis", "image")
1515
def googleimage(text):
1616
"""<query> - returns the first google image result for <query>"""
1717

plugins/google_cse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def gse(text):
5454

5555
return u'{} -- \x02{}\x02: "{}"'.format(result['link'], title, content)
5656

57-
@hook.command('gseis')
57+
@hook.command('gseis', 'gis', 'image')
5858
def gse_gis(text):
5959
"""<query> -- Returns first Google Images result for <query>."""
6060
if not dev_key:

0 commit comments

Comments
 (0)