Fix None Ygg

This commit is contained in:
Michel Roux 2019-12-14 11:58:46 +01:00
parent ee710dff0d
commit 1f12253715

View File

@ -392,7 +392,7 @@ class YggTorrent(Connector):
'href': url['href'], 'href': url['href'],
'name': url.string, 'name': url.string,
'comment': '<a href="%s#comm" target="_blank"><i class="fa fa-comments-o"></i>%s</a>' % 'comment': '<a href="%s#comm" target="_blank"><i class="fa fa-comments-o"></i>%s</a>' %
(url['href'], tds[3].string), (url['href'], tds[3].decode_contents()),
'link': '<a href="%s/engine/download_torrent?id=%s">' 'link': '<a href="%s/engine/download_torrent?id=%s">'
'<i class="fa fa-fw fa-download"></i>' '<i class="fa fa-fw fa-download"></i>'
'</a>' % (self.base_url, re.search(r'/(\d+)', url['href']).group(1)), '</a>' % (self.base_url, re.search(r'/(\d+)', url['href']).group(1)),