Fix torrent W3C+UX

Puts links to torrents and magnets in tool bar
Fixes a lot of W3C errors
This commit is contained in:
Cqoicebordel 2015-01-11 19:34:11 +01:00
parent d7ea44ab8d
commit c59d0c200e
2 changed files with 9 additions and 8 deletions

View file

@ -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