From 5f15d751979b2da5a6f37822deb1a3f969c4eabf Mon Sep 17 00:00:00 2001 From: dbeley <6568955+dbeley@users.noreply.github.com> Date: Sat, 15 Feb 2020 00:02:23 +0100 Subject: [PATCH] Fix image filename creation. --- rid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rid b/rid index 5685e3a..1b962c4 100755 --- a/rid +++ b/rid @@ -46,7 +46,7 @@ while : ; do name=$(echo -n "$names" | sed -n "$a"p) id=$(echo -n "$ids" | sed -n "$a"p) ext=$(echo -n "${url##*.}" | cut -d '?' -f 1) - newname="$subreddit"_"$sort""$timeframe"_"$(printf "%04d" $i)"_"$name"_$id.$ext + newname="$subreddit"_"$sort""$top_time"_"$(printf "%04d" $i)"_"$name"_$id.$ext printf "$i/$number : $newname\n" wget -T $timeout --no-check-certificate -nv -nc -P down -O "$subreddit/$newname" $url &>/dev/null & ((a=a+1))