1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixed regex issue

This commit is contained in:
echel0n 2014-11-12 22:38:51 -08:00
parent 3e958ca0e1
commit 297e69094a

View File

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