mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Google: Fix URL formatting.
For some reason, it worked on Python 3…
This commit is contained in:
parent
6f1045ed20
commit
8321d8a547
@ -92,7 +92,7 @@ class Google(callbacks.PluginRegexp):
|
||||
return results
|
||||
|
||||
|
||||
_gsearchUrl = 'https://www.google.com/search?gbv=2'
|
||||
_gsearchUrl = 'https://www.google.com/search'
|
||||
@internationalizeDocstring
|
||||
def search(self, query, channel, options={}):
|
||||
"""Perform a search using Google's AJAX API.
|
||||
@ -110,7 +110,7 @@ class Google(callbacks.PluginRegexp):
|
||||
dynamic.irc.nick)
|
||||
headers = dict(utils.web.defaultHeaders)
|
||||
headers['Referer'] = ref
|
||||
opts = {'q': query}
|
||||
opts = {'q': query, 'gbv': '2'}
|
||||
for (k, v) in options.items():
|
||||
if k == 'smallsearch':
|
||||
if v:
|
||||
|
Loading…
Reference in New Issue
Block a user