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/settings.html | |
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/settings.html')
-rw-r--r-- | ext/settings.html | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/ext/settings.html b/ext/settings.html index a3cc40f5..4dfa3100 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -1763,7 +1763,31 @@ </div> </div> </div></div> - + <div class="settings-item advanced-only"> + <div class="settings-item-inner settings-item-inner-wrappable"> + <div class="settings-item-left"> + <div class="settings-item-label">Idle download timeout <span class="light">(in milliseconds)</span></div> + <div class="settings-item-description"> + The maximum time before an idle download will be cancelled; 0 = no limit. + <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">More…</a> + </div> + </div> + <div class="settings-item-right"> + <input type="number" data-setting="anki.downloadTimeout" min="0"> + </div> + </div> + <div class="settings-item-children more" hidden> + <p> + Audio files can be downloaded from remote servers when creating Anki cards, + and sometimes these downloads can stall due to server or internet connectivity issues. + When this setting has a non-zero value, if a download has stalled for longer than the time specified, + the download will be cancelled. + </p> + <p class="margin-above"> + <a tabindex="0" class="more-toggle" data-parent-distance="3">Less…</a> + </p> + </div> + </div> <div class="settings-item advanced-only"><div class="settings-item-inner"> <div class="settings-item-left"> <div class="settings-item-label">Suspend new cards</div> |