Skip to content

Commit 71f396e

Browse files
authored
Merge pull request #86 from jsch8q/patch_pronunciation
pronunciation parsing for heteronyms
2 parents 933919b + b24a809 commit 71f396e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wiktionaryparser/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ def parse_pronunciations(self, word_contents):
143143
pronunciation_id_list = self.get_id_list(word_contents, 'pronunciation')
144144
pronunciation_list = []
145145
audio_links = []
146-
pronunciation_text = []
147146
pronunciation_div_classes = ['mw-collapsible', 'vsSwitcher']
148147
for pronunciation_index, pronunciation_id, _ in pronunciation_id_list:
148+
pronunciation_text = []
149149
span_tag = self.soup.find_all('span', {'id': pronunciation_id})[0]
150150
list_tag = span_tag.parent
151151
while list_tag.name != 'ul':

0 commit comments

Comments
 (0)