fix bugs in update sleep
This commit is contained in:
4
subs
4
subs
@@ -15,7 +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
|
||||
: "${SUBS_SLEEP_VALUE:=0.1}" # raise this if you experience problems
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
SEP=^^^^^ # shouldn't need to change this
|
||||
# -/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
|
||||
@@ -126,7 +126,7 @@ update_subs() {
|
||||
count=$(( count + 1 ))
|
||||
printf 'starting job [%s/%s] for %s\n' "$count" "$total" "$link"
|
||||
get_vids "$link" &
|
||||
sleep "${SLEEP_VALUE:-0}"
|
||||
sleep "${SUBS_SLEEP_VALUE:-0}"
|
||||
done <"$SUBS_LINKS"
|
||||
|
||||
count=0
|
||||
|
||||
Reference in New Issue
Block a user