From 17ab2561420098b5cdfb37545843428aa51b69c0 Mon Sep 17 00:00:00 2001 From: Red Hodgerson Date: Sun, 4 Dec 2016 14:44:09 -0600 Subject: [PATCH] Fix BeautifulSoup find_all parsing BeautifulSoup only returns a single TR tag regardless of the amount of results at line 49. Since the first TR tag returned isn't an actual result, you never get any results back. Explicitly calling the html parser fixes this issue. http://stackoverflow.com/questions/16322862/beautiful-soup-findall-doent-find-them-all --- couchpotato/core/media/_base/providers/torrent/bithdtv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/bithdtv.py b/couchpotato/core/media/_base/providers/torrent/bithdtv.py index 7aa0157..69c030e 100644 --- a/couchpotato/core/media/_base/providers/torrent/bithdtv.py +++ b/couchpotato/core/media/_base/providers/torrent/bithdtv.py @@ -39,7 +39,7 @@ class Base(TorrentProvider): if '## SELECT COUNT(' in split_data[0]: data = split_data[2] - html = BeautifulSoup(data) + html = BeautifulSoup(data, 'html.parser') try: result_table = html.find('table', attrs = {'width': '750', 'class': ''})