diff --git a/couchpotato/core/media/_base/providers/torrent/iptorrents.py b/couchpotato/core/media/_base/providers/torrent/iptorrents.py index 8bdecf9..e18b28b 100644 --- a/couchpotato/core/media/_base/providers/torrent/iptorrents.py +++ b/couchpotato/core/media/_base/providers/torrent/iptorrents.py @@ -50,7 +50,7 @@ class Base(TorrentProvider): current_page = 1 while current_page <= pages and not self.shuttingDown(): data = self.getHTMLData(base_url % (freeleech, current_page), headers = self.getRequestHeaders()) - log.debug('data: %s', data) + if data: html = BeautifulSoup(data) @@ -62,8 +62,8 @@ class Base(TorrentProvider): final_page_link = next_link.previous_sibling.previous_sibling pages = int(final_page_link.string) - result_table = html.find('table', attrs={'id': 'torrents','class' : 't1'}) - + result_table = html.find('table', attrs={'id': 'torrents'}) + log.debug('result_table: %s', result_table) if not result_table or 'nothing found!' in data.lower(): return