From f26a88bc5fd1199c2335bfcc83d6b64ee5f185d3 Mon Sep 17 00:00:00 2001 From: eweihe <36673513+eweihe@users.noreply.github.com> Date: Sun, 5 Nov 2023 20:43:13 +0100 Subject: [PATCH] Added Wget read-timeout and retry Configure Wget to retry the download, when no packets are received for 10 seconds, for a total of 3 retries --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index a0cda14..a7d2b52 100755 --- a/quickget +++ b/quickget @@ -846,7 +846,7 @@ function web_get() { fi echo #Necessary as aria2c in suppressed mode does not have new lines else - if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then + if ! wget --quiet --continue --tries=3 --read-timeout=10 --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again." exit 1 fi