logger -s -t $LOGTAG "starting downloading files in $list"
-while read -r url filename tail; do
- if wget --cut-dirs=100 -np --accept -e robots=off -O "$outdir$filename" "$url" $otherargs; then
+while read -r url filename; do
+ if wget --cut-dirs=100 -np -e robots=off -O $outdir$filename $otherargs $url; then
sed '/$filename/d' $list
logger -s -t $LOGTAG "downloaded $filename"
else