Fixes missing handling for verbatim search

See #107
This commit is contained in:
Ben Busby 2020-07-24 18:55:56 -06:00
parent 4c8ffaa3ba
commit 3bfd11bf6f

View File

@ -171,6 +171,8 @@ class Filter:
if query_link.startswith('/'):
link['href'] = 'https://google.com' + query_link
elif '/search?q=' in href:
if 'li:1' in href:
query_link = '"' + query_link + '"'
new_search = '/search?q=' + self.encrypt_path(query_link)
query_params = parse_qs(urlparse.urlparse(href).query)