mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 04:41:00 +00:00
[fix] skipping empty urls
This commit is contained in:
parent
3a6d3e3377
commit
0d6368a092
1 changed files with 2 additions and 0 deletions
|
@ -23,5 +23,7 @@ def response(resp):
|
||||||
for result in search_res['responseData']['results']:
|
for result in search_res['responseData']['results']:
|
||||||
url = result['originalContextUrl']
|
url = result['originalContextUrl']
|
||||||
title = result['title']
|
title = result['title']
|
||||||
|
if not result['url']:
|
||||||
|
continue
|
||||||
results.append({'url': url, 'title': title, 'content': '', 'img_src': result['url'], 'template': 'images.html'})
|
results.append({'url': url, 'title': title, 'content': '', 'img_src': result['url'], 'template': 'images.html'})
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue