1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Merge pull request #21 from SickragePVR/feature/FixIPT

Feature/fix ipt
This commit is contained in:
adam111316 2014-10-19 02:39:22 +08:00
commit bd6cc51975

View File

@ -174,6 +174,7 @@ class IPTorrentsProvider(generic.TorrentProvider):
continue
try:
data = re.sub(r'<button.+?<[\/]button>', '', data, 0, re.IGNORECASE | re.MULTILINE)
with BS4Parser(data, features=["html5lib", "permissive"]) as html:
if not html:
logger.log(u"Invalid HTML data: " + str(data), logger.DEBUG)