yomichan/ext/mixed
sabs fd17a0fccd Remove Download check when resolving Audio data
There is a bug (seemingly unreported) in Yomichan where an Anki card
will not contain any audio if the JapanesePod101 audio source trumps
a secondary audio source (e.g. JapanesePod101-alternate) where
the jpod101 source can't find the word requested.

For example, そして has an audio entry in the alternate source but not
the standard source.

(Alternatively, there may be a bug in the jpod101 audioUrlBuilder,
because I've only noticed this problem with hiragana-only expressions.
JPod101 may not host those on the same url scheme any more.  I'm not
sure how to fix that, though, and the bug I'm addressing here does
still persist).

The reason this happens is that audioGetFromUrl uses downloaded audio
to effectively check for a 404 (by examining the audio duration), but
that check doesn't happen when an Anki card is being created (i.e.
"download" is set, which I've changed to "willDownload" here).

This change removes that check, but retains the will-download intent
information to prevent attempts to download tts data, which AnkiConnect
cannot do. I've also added a short explanation as to why the download
check happens where it does.

I think the unused audio object will get garbage collected since it's
not referenced again, but I've explicitly unset it as well.
2019-11-09 20:58:09 -05:00
..
css search page checkbox styling 2019-11-10 03:15:55 +02:00
img Remove PNG icons 2019-10-06 21:28:43 -04:00
js Remove Download check when resolving Audio data 2019-11-09 20:58:09 -05:00
lib upgrade to wanikana 2.2.3 (fixes #42) 2017-08-14 23:10:59 -07:00
mp3 file reorg 2017-03-04 12:27:05 -08:00
ttf misc bug fixes, version bump 2017-03-10 20:12:07 -08:00