mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
remove empty parenthesis in wikipedia's summary
They're usually IPA pronunciations which are removed by the API.
This commit is contained in:
parent
c18048e045
commit
5706c12fba
@ -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'])) \
|
||||
|
Loading…
Reference in New Issue
Block a user