diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-11 19:34:11 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-11 19:34:11 +0100 |
commit | c59d0c200ed2c64bb6cbb35adfe7f18298d81af4 (patch) | |
tree | 86412c92d0331ec78039393fc0e7793b8acaa261 /searx/engines/kickass.py | |
parent | d7ea44ab8dd7f728ce19589b48618d7eb1669170 (diff) | |
download | searxng-c59d0c200ed2c64bb6cbb35adfe7f18298d81af4.tar.gz searxng-c59d0c200ed2c64bb6cbb35adfe7f18298d81af4.zip |
Fix torrent W3C+UX
Puts links to torrents and magnets in tool bar
Fixes a lot of W3C errors
Diffstat (limited to 'searx/engines/kickass.py')
-rw-r--r-- | searx/engines/kickass.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/kickass.py b/searx/engines/kickass.py index a4d270673..ac349283d 100644 --- a/searx/engines/kickass.py +++ b/searx/engines/kickass.py @@ -102,6 +102,7 @@ def response(resp): magnetlink = result.xpath(magnet_xpath)[0].attrib['href'] torrentfile = result.xpath(torrent_xpath)[0].attrib['href'] + torrentfileurl = quote(torrentfile, safe="%/:=&?~#+!$,;'@()*") # append result results.append({'url': href, @@ -112,7 +113,7 @@ def response(resp): 'filesize': filesize, 'files': files, 'magnetlink': magnetlink, - 'torrentfile': torrentfile, + 'torrentfile': torrentfileurl, 'template': 'torrent.html'}) # return results sorted by seeder |