summaryrefslogtreecommitdiff
path: root/searx/engines/wikipedia.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2019-08-25 22:47:23 -0700
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-12-21 22:47:08 -0600
commit5706c12fba98e169c7c76a4d3c29aabf48242d63 (patch)
tree8dbc1e05cead72ea46c65188e3435a0919590bf6 /searx/engines/wikipedia.py
parentc18048e0454f4e3dc75c778940903091fbeae06a (diff)
downloadsearxng-5706c12fba98e169c7c76a4d3c29aabf48242d63.tar.gz
searxng-5706c12fba98e169c7c76a4d3c29aabf48242d63.zip
remove empty parenthesis in wikipedia's summary
They're usually IPA pronunciations which are removed by the API.
Diffstat (limited to 'searx/engines/wikipedia.py')
-rw-r--r--searx/engines/wikipedia.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py
index 44dea56fa..a216ba886 100644
--- a/searx/engines/wikipedia.py
+++ b/searx/engines/wikipedia.py
@@ -100,6 +100,7 @@ def response(resp):
extract = page.get('extract')
summary = extract_first_paragraph(extract, title, image)
+ summary = summary.replace('() ', '')
# link to wikipedia article
wikipedia_link = base_url.format(language=url_lang(resp.search_params['language'])) \