forked from Ponysearch/Ponysearch
[enh] clickable youtube thumbnail
This commit is contained in:
parent
326a33fafe
commit
c3c9d147ce
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue