logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: c3c9d147cebba75a6f7116cdaa85a0e3f432a264
parent: 326a33fafeaade21cc97cea1fe5e50c0dbea40d5
Author: asciimoo <asciimoo@gmail.com>
Date:   Sat,  2 Nov 2013 18:18:45 +0100

[enh] clickable youtube thumbnail

Diffstat:

searx/engines/youtube.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/engines/youtube.py b/searx/engines/youtube.py @@ -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: