Fix image filename creation.
This commit is contained in:
parent
4d2acae47d
commit
5f15d75197
2
rid
2
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))
|
||||
|
|
Loading…
Reference in New Issue