mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
Fix torrent W3C+UX
Puts links to torrents and magnets in tool bar Fixes a lot of W3C errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user