diff options
author | Astound <kirito@disroot.org> | 2024-03-10 02:08:23 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-03-10 02:08:23 +0800 |
commit | 38d8d5d4c5e1f7b83308ad079674dd1157b57be1 (patch) | |
tree | cf4f7d883a6f2c0033eb34652036bc38adebe5e9 /youtube/static/js | |
parent | f010452abfb85c5c06252fe13bd640240a2d2aed (diff) | |
download | yt-local-38d8d5d4c5e1f7b83308ad079674dd1157b57be1.tar.lz yt-local-38d8d5d4c5e1f7b83308ad079674dd1157b57be1.tar.xz yt-local-38d8d5d4c5e1f7b83308ad079674dd1157b57be1.zip |
av-merge: Retry more than once for timeouts
Diffstat (limited to 'youtube/static/js')
-rw-r--r-- | youtube/static/js/av-merge.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 3226244..e00f440 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -569,7 +569,8 @@ function fetchRange(url, start, end, debugInfo) { onFailure(e, 'Network error'); }; xhr.ontimeout = function (event){ - onFailure(null, 'Timeout (15s)', maxRetries=1); + xhr.timeout += 5000; + onFailure(null, 'Timeout (15s)', maxRetries=5); }; xhr.send(); }); |