wrong class

This commit is contained in:
Michel Roux 2019-12-15 19:52:08 +01:00
parent bc2f4700ba
commit 6b977b8086

View File

@ -333,7 +333,7 @@ class Pantsu(Connector):
'seeds': check_seeds,
'leechs': tds[5].string,
'downloads': check_downloads,
'class': self.color if AnimeLink.query.filter_by(link=quote(href)).first() else 'is-%s' %
'class': self.color if AnimeLink.query.filter_by(link=href).first() else 'is-%s' %
tr['class'][0]
})
@ -402,7 +402,7 @@ class YggTorrent(Connector):
'seeds': check_seeds,
'leechs': tds[8].string,
'downloads': check_downloads,
'class': self.color if AnimeLink.query.filter_by(link=url['href']).first() else ''
'class': self.color if AnimeLink.query.filter_by(link=quote(url['href'])).first() else ''
})
self.on_error = False