Merge pull request #2681 from dalf/fix-wikipedia-title

[fix] wikipedia: remove HTML from the title
This commit is contained in:
Alexandre Flament 2021-03-27 17:43:36 +01:00 committed by GitHub
commit 725a69616b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def response(resp):
if api_result.get('type') != 'standard': if api_result.get('type') != 'standard':
return [] return []
title = api_result['displaytitle'] title = api_result['title']
wikipedia_link = api_result['content_urls']['desktop']['page'] wikipedia_link = api_result['content_urls']['desktop']['page']
results.append({'url': wikipedia_link, 'title': title}) results.append({'url': wikipedia_link, 'title': title})