From 603c2c7e1b50d8b06c06848c3e83d241da9437e6 Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Thu, 27 Jun 2024 18:08:42 +0200 Subject: add lingua libre audio source (#1129) * add lingua libre audio source * mvp * run file requests in parallel * remove redundant language var * redundant api function --------- Co-authored-by: Cashew <52880648+cashewnuttynuts@users.noreply.github.com> --- ext/js/data/anki-note-builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/data') diff --git a/ext/js/data/anki-note-builder.js b/ext/js/data/anki-note-builder.js index 38588439..7f7fe3a7 100644 --- a/ext/js/data/anki-note-builder.js +++ b/ext/js/data/anki-note-builder.js @@ -428,8 +428,8 @@ export class AnkiNoteBuilder { if (injectAudio && dictionaryEntryDetails.type !== 'kanji') { const audioOptions = mediaOptions.audio; if (typeof audioOptions === 'object' && audioOptions !== null) { - const {sources, preferredAudioIndex, idleTimeout} = audioOptions; - audioDetails = {sources, preferredAudioIndex, idleTimeout}; + const {sources, preferredAudioIndex, idleTimeout, languageSummary} = audioOptions; + audioDetails = {sources, preferredAudioIndex, idleTimeout, languageSummary}; } } if (injectScreenshot) { -- cgit v1.2.3