Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix dup insert
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Mar 16, 2018
1 parent dc29a48 commit f8db5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zdict/dictionaries/yahoo.py
Expand Up @@ -153,7 +153,7 @@ def text(x):

# Construct summary
summary = content['summary'] = {}
sum_ = data.select_one('div#web ol > li > div')
sum_ = data.select_one('div#web ol.searchCenterMiddle > li > div')
if not sum_:
raise NotFoundError(word)
try:
Expand All @@ -167,7 +167,7 @@ def text(x):
_, word_, explain = ls
pronoun = None

word = summary['word'] = word_.find('span').text.strip()
summary['word'] = word_.find('span').text.strip()
if pronoun:
summary['pronounce'] = pronoun.find('ul').text.strip().split()
summary['explain'] = list(
Expand Down

0 comments on commit f8db5c5

Please sign in to comment.