Fix image filename creation.

This commit is contained in:
dbeley 2020-02-15 00:02:23 +01:00
parent 4d2acae47d
commit 5f15d75197
1 changed files with 1 additions and 1 deletions

2
rid
View File

@ -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))