From 310303ca1a123a77f9bd116af4dc64ad9c3256c5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 20 Aug 2022 11:17:24 -0400 Subject: Audio download timeout (#2187) * Add support for an idle timeout when downloading audio * Update eslint rules * Pass idleTimeout to the downloader from DisplayAnki * Add anki.downloadTimeout setting * Update tests * Assign _audioDownloadIdleTimeout using settings * Show info about cancelled downloads * Handle Firefox bug * Improve audio errors * Refactor * Move functions to RequestBuilder --- test/test-options-util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test-options-util.js b/test/test-options-util.js index 16660fd0..af64e7dd 100644 --- a/test/test-options-util.js +++ b/test/test-options-util.js @@ -470,7 +470,8 @@ function createProfileOptionsUpdatedTestData1() { fieldTemplates: null, suspendNewCards: false, noteGuiMode: 'browse', - apiKey: '' + apiKey: '', + downloadTimeout: 0 }, sentenceParsing: { scanExtent: 200, @@ -619,7 +620,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 19, + version: 20, global: { database: { prefixWildcardsSupported: false -- cgit v1.2.3