1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

[enh] clickable youtube thumbnail

This commit is contained in:
asciimoo 2013-11-02 18:18:45 +01:00
parent 326a33fafe
commit c3c9d147ce

View File

@ -27,7 +27,7 @@ def response(resp):
title = result['title']['$t']
content = ''
if len(result['media$group']['media$thumbnail']):
content += '<img src="%s" />' % (result['media$group']['media$thumbnail'][0]['url'])
content += '<a href="{0}" title="{0}" ><img src="{1}" /></a>'.format(url, result['media$group']['media$thumbnail'][0]['url'])
if len(content):
content += '<br />' + result['content']['$t']
else: