[enh] clickable youtube thumbnail

This commit is contained in:
asciimoo 2013-11-02 18:18:45 +01:00
parent 326a33fafe
commit c3c9d147ce
1 changed files with 1 additions and 1 deletions

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: