summaryrefslogtreecommitdiff
path: root/searx/engines/kickass.py
diff options
context:
space:
mode:
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