diff --git a/searx/engines/piratebay.py b/searx/engines/piratebay.py index c838b5bdd..7821c9dcb 100644 --- a/searx/engines/piratebay.py +++ b/searx/engines/piratebay.py @@ -32,5 +32,7 @@ def response(resp): content = escape(' '.join(result.xpath('.//font[@class="detDesc"]//text()'))) seed, leech = result.xpath('.//td[@align="right"]/text()')[:2] content += '
Seed: %s, Leech: %s' % (seed, leech) + magnetlink = result.xpath('.//a[@title="Download this torrent using magnet"]')[0] + content += '
magnet link' % urljoin(base_url, magnetlink.attrib['href']) results.append({'url': url, 'title': title, 'content': content}) return results