diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-11-02 18:18:45 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-11-02 18:18:45 +0100 |
| commit | c3c9d147cebba75a6f7116cdaa85a0e3f432a264 (patch) | |
| tree | 473cdd1a47a8adebfe2ad741c666624ac592b9d1 | |
| parent | 326a33fafeaade21cc97cea1fe5e50c0dbea40d5 (diff) | |
[enh] clickable youtube thumbnail
| -rw-r--r-- | searx/engines/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/youtube.py b/searx/engines/youtube.py index 265f86af8..1331f480e 100644 --- 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: |