Private GIT

Skip to content
Snippets Groups Projects
Commit 297e6909 authored by echel0n's avatar echel0n
Browse files

Fixed regex issue

parent 3e958ca0
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment