From 62e8c91e4a0bf215ee5635e37ec9fc8f787adaf7 Mon Sep 17 00:00:00 2001 From: swordfish6975 Date: Sun, 10 Feb 2019 15:59:32 +1000 Subject: [PATCH] Update iptorrents.py --- couchpotato/core/media/_base/providers/torrent/iptorrents.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/media/_base/providers/torrent/iptorrents.py b/couchpotato/core/media/_base/providers/torrent/iptorrents.py index c3f3552..b7a6631 100644 --- a/couchpotato/core/media/_base/providers/torrent/iptorrents.py +++ b/couchpotato/core/media/_base/providers/torrent/iptorrents.py @@ -62,9 +62,10 @@ class Base(TorrentProvider): final_page_link = next_link.previous_sibling.previous_sibling pages = int(final_page_link.string) - result_table = html.find(id="torrents") + result_table = html.select('table#torrents') log.debug('result_table: %s', result_table) - if not result_table or 'nothing found!' in data.lower(): + result_table = result_table[0] + if not result_table or 'nothing found!' in data.lower(): return entries = result_table.find_all('tr')