From 59f1441d236ac21fc5e6308fa765417409d51d73 Mon Sep 17 00:00:00 2001 From: Gordon Shumway Date: Wed, 1 Jul 2020 04:00:36 -0400 Subject: [PATCH] Google: Fix plugin. --- plugins/Google/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/Google/parser.py b/plugins/Google/parser.py index bb4b5560c..013303da3 100644 --- a/plugins/Google/parser.py +++ b/plugins/Google/parser.py @@ -81,8 +81,7 @@ class GoogleHTMLParser(HTMLParser): href = attrs['href'][len('/url?q='):] self.current_link = utils.web.urlunquote(href.split('&sa')[0]) - elif tag == 'div' and 'a' in self.stack and 'h3' in self.stack \ - and self.state == ParserState.IN_LINK: + elif tag == 'h3' and 'a' in self.stack and self.state == ParserState.IN_LINK: self.state = ParserState.IN_TITLE mark = DomMark.HEADING