diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-22 19:15:30 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-22 19:15:30 +0200 |
commit | ef7e1199c3b9fad5b47af474423dedc356c6c2c2 (patch) | |
tree | ebf573fba29da58c8adce7f60f9423753374e6a9 /searx/engines | |
parent | 9ad8013a4578dc8069227d3e9de88d734089828e (diff) | |
download | searxng-ef7e1199c3b9fad5b47af474423dedc356c6c2c2.tar.gz searxng-ef7e1199c3b9fad5b47af474423dedc356c6c2c2.zip |
[enh] displaying seeders/leechers
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/piratebay.py | 2 |
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 |