summaryrefslogtreecommitdiff
path: root/searx/engines/kickass.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-11 19:34:11 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-11 19:34:11 +0100
commitc59d0c200ed2c64bb6cbb35adfe7f18298d81af4 (patch)
tree86412c92d0331ec78039393fc0e7793b8acaa261 /searx/engines/kickass.py
parentd7ea44ab8dd7f728ce19589b48618d7eb1669170 (diff)
downloadsearxng-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.py3
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