mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02: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:
parent
d7ea44ab8d
commit
c59d0c200e
2 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue