Google: Fix plugin.

This commit is contained in:
Gordon Shumway 2020-07-01 04:00:36 -04:00 committed by Valentin Lorentz
parent 01f166a224
commit 59f1441d23

View File

@ -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