mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Google: Fix URL quoting.
This commit is contained in:
parent
277f296057
commit
2a8b8e78a0
@ -288,15 +288,13 @@ class Google(callbacks.PluginRegexp):
|
||||
googleSnarfer = urlSnarfer(googleSnarfer)
|
||||
|
||||
def _googleUrl(self, s, channel):
|
||||
s = s.replace('+', '%2B')
|
||||
s = s.replace(' ', '+')
|
||||
s = urllib.quote_plus(s)
|
||||
url = r'http://%s/search?q=%s' % \
|
||||
(self.registryValue('baseUrl', channel), s)
|
||||
return url
|
||||
|
||||
def _googleUrlIG(self, s, channel):
|
||||
s = s.replace('+', '%2B')
|
||||
s = s.replace(' ', '+')
|
||||
s = urllib.quote_plus(s)
|
||||
url = r'http://%s/ig/calculator?hl=en&q=%s' % \
|
||||
(self.registryValue('baseUrl', channel), s)
|
||||
return url
|
||||
|
Loading…
Reference in New Issue
Block a user