From 7ae451a0b95381a96bd9a8a82364a731febf3265 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Thu, 28 May 2020 07:56:54 -0500 Subject: [PATCH] make ${SLEEP_VALUE} customizeable --- subs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subs b/subs index d634364..73b8dc9 100755 --- a/subs +++ b/subs @@ -15,6 +15,7 @@ : "${SUBS:=${XDG_CACHE_HOME:-~/.cache}/subs}" : "${SUBS_LINKS:=$SUBS/links}" : "${SUBS_CACHE:=$SUBS/cache}" +# : "${SLEEP_VALUE:=0.1}" # may need this if you experience problems # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SEP=^^^^^ # shouldn't need to change this # -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/ @@ -125,7 +126,7 @@ update_subs() { count=$(( count + 1 )) printf 'starting job [%s/%s] for %s\n' "$count" "$total" "$link" get_vids "$link" & - sleep 0.1 + sleep "${SLEEP_VALUE:-0}" done <"$SUBS_LINKS" count=0