Closed precondition closed 9 months ago
I agree, but this is an AnkiConnect issue. It isn't fixable in Memento unless it pre-fetches audio always before adding a note. It should be pretty trivial to wrap AnkiConnect exceptions in <!-- -->
so they don't appear on card. I'd recommend making a PR to AnkiConnect, since FooSoft is good about getting PRs merged quickly.
I'll leave it to you since I know you're a capable programmer and it's low hanging fruit. If you want me to do it instead though, let me know.
If none of the audio sources for word pronunciations are reachable (e.g. internet is disabled), the
{audio}
marker gets filled with a very long error message like:which results in ugly Anki cards like this:
What I find interesting is that this error message differs from the one we obtain in
src/audio/audioplayer.cpp
line 163:which says
"Host assets.languagepod101.com not found"
I'd much rather get an empty
{audio}
marker than one filled with error messages.