From 2086d9acda2b070752bd0d3f9682ecd99845f6db Mon Sep 17 00:00:00 2001 From: Filip Andre Larsen Tomren Date: Thu, 13 Apr 2017 17:12:19 +0200 Subject: [PATCH] Changed where to look for matches for Bit-HDTV due to site changes https://www.bit-hdtv.com/forums/viewtopic.php?pid=96375 --- couchpotato/core/media/_base/providers/torrent/bithdtv.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/bithdtv.py b/couchpotato/core/media/_base/providers/torrent/bithdtv.py index 69c030e..149d7c1 100644 --- a/couchpotato/core/media/_base/providers/torrent/bithdtv.py +++ b/couchpotato/core/media/_base/providers/torrent/bithdtv.py @@ -42,7 +42,12 @@ class Base(TorrentProvider): html = BeautifulSoup(data, 'html.parser') try: - result_table = html.find('table', attrs = {'width': '750', 'class': ''}) + result_tables = html.find_all('table', attrs = {'width': '750', 'class': ''}) + if result_tables is None: + return + + result_table = result_tables[1] + if result_table is None: return