summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-22 19:15:30 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-22 19:15:30 +0200
commitef7e1199c3b9fad5b47af474423dedc356c6c2c2 (patch)
treeebf573fba29da58c8adce7f60f9423753374e6a9 /searx/engines
parent9ad8013a4578dc8069227d3e9de88d734089828e (diff)
downloadsearxng-ef7e1199c3b9fad5b47af474423dedc356c6c2c2.tar.gz
searxng-ef7e1199c3b9fad5b47af474423dedc356c6c2c2.zip
[enh] displaying seeders/leechers
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/piratebay.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py
index 0d99e4722..c838b5bdd 100644
--- a/searx/engines/piratebay.py
+++ b/searx/engines/piratebay.py
@@ -30,5 +30,7 @@ def response(resp):
url = urljoin(base_url, link.attrib.get('href'))
title = ' '.join(link.xpath('.//text()'))
content = escape(' '.join(result.xpath('.//font[@class="detDesc"]//text()')))
+ seed, leech = result.xpath('.//td[@align="right"]/text()')[:2]
+ content += '<br />Seed: %s, Leech: %s' % (seed, leech)
results.append({'url': url, 'title': title, 'content': content})
return results