mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Merge pull request #17 from JackDandy/FixIPT
Fix searching IPTorrentsProvider.
This commit is contained in:
commit
0aa9a992ff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user