[mod] add/modify image fetching for bing_news, qwant and twitter engines

This commit is contained in:
Alexandre Flament 2017-02-12 14:58:49 +01:00 committed by Adam Tauber
parent 4cffd78650
commit f5128c7cb9
4 changed files with 28 additions and 11 deletions

View file

@ -112,12 +112,11 @@ def response(resp):
# append result
if thumbnail is not None:
results.append({'template': 'videos.html',
'url': url,
results.append({'url': url,
'title': title,
'publishedDate': publishedDate,
'content': content,
'thumbnail': thumbnail})
'img_src': thumbnail})
else:
results.append({'url': url,
'title': title,