summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-12 14:15:45 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-12 14:15:45 +0100
commit12425618caacec90ac90332f580fb628ef32e213 (patch)
treef331a52ea37ef4acc136579898188c92f2db3f10 /searx/engines
parentb47b8cc2c6cd3c746807a2fe955e956d43556081 (diff)
parent824208491a73f82e2297ef76753a44a93b4b1141 (diff)
Merge pull request #172 from Cqoicebordel/torrents-w3c+ux+rss
Torrents w3c+ux+rss
Diffstat (limited to 'searx/engines')
-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