realmayus/anki_forvo_dl

new error using anki_forvo_dll

Closed this issue · 0 comments

Got today an error using anki_forvo;
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-15 18:40:47

Caught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "aqt.editor", line 561, in
File "C:\Users\kpdiw\AppData\Roaming\Anki2\addons21\858591644_init_.py", line 217, in
editor.saveNow(lambda: add_pronunciation(editor, mode))
File "C:\Users\kpdiw\AppData\Roaming\Anki2\addons21\858591644_init_.py", line 130, in add_pronunciation
results = forvo.get_pronunciations().pronunciations
File "C:\Users\kpdiw\AppData\Roaming\Anki2\addons21\858591644\src\Forvo.py", line 111, in get_pronunciations
pronunciations: Tag = lang_container.find_all(class_="pronunciations")[0].find_all(class_="show-all-pronunciations")[0].find_all("li")
IndexError: list index out of range