diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-08-20 11:17:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 11:17:24 -0400 |
commit | 310303ca1a123a77f9bd116af4dc64ad9c3256c5 (patch) | |
tree | af8bad0ec544625970a5f2a4613fff27773b162c /ext/data | |
parent | 02483a45b1b7fb0654b3f37571b92400b76734a5 (diff) |
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
Diffstat (limited to 'ext/data')
-rw-r--r-- | ext/data/schemas/options-schema.json | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index d7e3b5f4..37b32bbf 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -878,7 +878,8 @@ "suspendNewCards", "displayTags", "noteGuiMode", - "apiKey" + "apiKey", + "downloadTimeout" ], "properties": { "enable": { @@ -1002,6 +1003,11 @@ "apiKey": { "type": "string", "default": "" + }, + "downloadTimeout": { + "type": "number", + "default": 0, + "minimum": 0 } } }, |