diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-01-19 22:39:56 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-01-19 22:39:56 +0100 |
| commit | bfdd6ebb9292f544736ed264a8d8ab04ca8d0296 (patch) | |
| tree | a0f0b92552219a46ccc4cd933fd41816144381ca /searx/engines/vimeo.py | |
| parent | dcbf17f57010b942a29b6a28555ec031eea5cf5b (diff) | |
| parent | 380b440a55ba3b8ec1430843226fa6b4b0dfe289 (diff) | |
Merge branch 'featured_result' of https://github.com/pw3t/searx
Diffstat (limited to 'searx/engines/vimeo.py')
| -rw-r--r-- | searx/engines/vimeo.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index 52c89ffdd..35bc3d50a 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -35,7 +35,11 @@ def response(resp): for result in dom.xpath(results_xpath): url = base_url + result.xpath(url_xpath)[0] title = p.unescape(extract_text(result.xpath(title_xpath))) - content = '<a href="{0}"> <img src="{2}"/> </a>'.format(url, title, extract_text(result.xpath(content_xpath)[0])) - results.append({'url': url, 'title': title, 'content': content}) - + thumbnail = extract_text(result.xpath(content_xpath)[0]) + content = '<a href="{0}"> <img src="{2}"/> </a>'.format(url, title, thumbnail) + results.append({'url': url + , 'title': title + , 'content': content + , 'template':'videos.html' + , 'thumbnail': thumbnail}) return results |