on master help sign in
remove empty parenthesis in wikipedia's summary

They're usually IPA pronunciations which are removed by the API.

commit5706c12fba98e169c7c76a4d3c29aabf48242d63 authorMarc Abonce Seguin <marc-abonce@mailbox.org> dateSun 25 Aug 2019, 22:47 (7 years ago) parentc18048e
1 file changed+1
searx/engines/wikipedia.py+1
searx/engines/wikipedia.py+1
@@ -100,6 +100,7 @@ def response(resp):
100100 extract = page.get('extract')
101101
102102 summary = extract_first_paragraph(extract, title, image)
103+ summary = summary.replace('() ', '')
103104
104105 # link to wikipedia article
105106 wikipedia_link = base_url.format(language=url_lang(resp.search_params['language'])) \