diff --git a/sickbeard/providers/iptorrents.py b/sickbeard/providers/iptorrents.py index 9ad9cf74276fbaaf4673d40afed319b3009acdc4..1a7298bfff8d2564dc9c6b38977f92293b28b41f 100644 --- a/sickbeard/providers/iptorrents.py +++ b/sickbeard/providers/iptorrents.py @@ -156,7 +156,7 @@ class IPTorrentsProvider(generic.TorrentProvider): continue try: - html = BeautifulSoup(data) + html = BeautifulSoup(data, features=["html5lib", "permissive"]) if not html: logger.log(u"Invalid HTML data: " + str(data) , logger.DEBUG) @@ -254,7 +254,7 @@ class IPTorrentsCache(tvcache.TVCache): return [] try: - html = BeautifulSoup(data) + html = BeautifulSoup(data, features=["html5lib", "permissive"]) torrent_table = html.find('table', attrs = {'class' : 'torrents'}) torrents = torrent_table.find_all('tr') if torrent_table else [] diff --git a/sickbeard/providers/torrentleech.py b/sickbeard/providers/torrentleech.py index 356b09326eb1d3865896539b5caf262c7043077f..759d37596c32fb1438be3c3ff4466e48757e2174 100644 --- a/sickbeard/providers/torrentleech.py +++ b/sickbeard/providers/torrentleech.py @@ -156,7 +156,7 @@ class TorrentLeechProvider(generic.TorrentProvider): continue try: - html = BeautifulSoup(data) + html = BeautifulSoup(data, features=["html5lib", "permissive"]) torrent_table = html.find('table', attrs = {'id' : 'torrenttable'}) torrent_rows = torrent_table.find_all('tr') if torrent_table else [] @@ -241,7 +241,7 @@ class TorrentLeechCache(tvcache.TVCache): return [] try: - html = BeautifulSoup(data) + html = BeautifulSoup(data, features=["html5lib", "permissive"]) torrent_table = html.find('table', attrs = {'id' : 'torrenttable'}) torrent_rows = torrent_table.find_all('tr') if torrent_table else []