summaryrefslogtreecommitdiff
path: root/searx/engines/bpb.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/bpb.py')
-rw-r--r--searx/engines/bpb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/bpb.py b/searx/engines/bpb.py
index 8be451f95..d6ad7f909 100644
--- a/searx/engines/bpb.py
+++ b/searx/engines/bpb.py
@@ -40,9 +40,9 @@ def response(resp):
json_resp = resp.json()
for result in json_resp['teaser']:
- img_src = None
+ thumbnail = None
if result['teaser']['image']:
- img_src = base_url + result['teaser']['image']['sources'][-1]['url']
+ thumbnail = base_url + result['teaser']['image']['sources'][-1]['url']
metadata = result['extension']['overline']
authors = ', '.join(author['name'] for author in result['extension'].get('authors', []))
@@ -58,7 +58,7 @@ def response(resp):
'url': base_url + result['teaser']['link']['url'],
'title': result['teaser']['title'],
'content': result['teaser']['text'],
- 'img_src': img_src,
+ 'thumbnail': thumbnail,
'publishedDate': publishedDate,
'metadata': metadata,
}