From c2e40142879fcb08291471f0306a793fce63c124 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 24 Jun 2016 00:38:17 -0500 Subject: [fix] urls merge in infobox (#593) TODO: merge attributes --- searx/engines/wikipedia.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'searx/engines/wikipedia.py') diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index fed7b263f..70191d22b 100644 --- a/searx/engines/wikipedia.py +++ b/searx/engines/wikipedia.py @@ -99,9 +99,8 @@ def response(resp): return [] # link to wikipedia article - # parenthesis are not quoted to make infobox mergeable with wikidata's wikipedia_link = url_lang(resp.search_params['language']) \ - + 'wiki/' + quote(title.replace(' ', '_').encode('utf8')).replace('%28', '(').replace('%29', ')') + + 'wiki/' + quote(title.replace(' ', '_').encode('utf8')) results.append({'url': wikipedia_link, 'title': title}) -- cgit v1.2.3