From 3031a1768e24b57119d08748006141578e8ea31d Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 25 Feb 2018 08:39:01 +0100 Subject: Stricter selection of board table rows in HTML mode --- jfr_playoff/matchinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index 997e685..5924564 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -191,7 +191,7 @@ class MatchInfo: urljoin(self.info.link, segment_link[0]['href'])) try: segment_content = p_remote.fetch(segment_url) - board_rows = [row for row in segment_content.find_all('tr') if len(row.select('a.zb')) > 0] + board_rows = [row for row in segment_content.find_all('tr') if len(row.select('td.bdcc a.zb')) > 0] board_count = len(board_rows) played_boards = len([ row for row in board_rows if len( -- cgit v1.2.3