From 8fc37fd9bbf13cf6b148ce3127089c5ce7dcebc2 Mon Sep 17 00:00:00 2001 From: swordfish6975 Date: Sun, 10 Feb 2019 16:06:59 +1000 Subject: [PATCH] Update iptorrents.py --- couchpotato/core/media/_base/providers/torrent/iptorrents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/media/_base/providers/torrent/iptorrents.py b/couchpotato/core/media/_base/providers/torrent/iptorrents.py index d4e2acd..188f93d 100644 --- a/couchpotato/core/media/_base/providers/torrent/iptorrents.py +++ b/couchpotato/core/media/_base/providers/torrent/iptorrents.py @@ -52,7 +52,7 @@ class Base(TorrentProvider): data = self.getHTMLData(base_url % (freeleech, current_page), headers = self.getRequestHeaders()) if data: - html = BeautifulSoup(data) + html = BeautifulSoup(data, parser="html.parser") try: page_nav = html.find('span', attrs = {'class': 'page_nav'}) @@ -62,7 +62,7 @@ class Base(TorrentProvider): final_page_link = next_link.previous_sibling.previous_sibling pages = int(final_page_link.string) - result_table = html.find_all('table', id="torrents") + result_table = html.find('table', id="torrents") log.debug('result_table: %s', result_table) result_table = result_table[0] if not result_table or 'nothing found!' in data.lower():