From c59d0c200ed2c64bb6cbb35adfe7f18298d81af4 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Sun, 11 Jan 2015 19:34:11 +0100 Subject: Fix torrent W3C+UX Puts links to torrents and magnets in tool bar Fixes a lot of W3C errors --- searx/engines/kickass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'searx/engines') 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 -- cgit v1.2.3