Fix file name errors on download
This commit is contained in:
parent
b68b126e1e
commit
1ac2983013
@ -107,6 +107,11 @@ do
|
|||||||
wget_func $line "-O $TMPDIR/out_$THREAD.html"
|
wget_func $line "-O $TMPDIR/out_$THREAD.html"
|
||||||
echo -ne "."
|
echo -ne "."
|
||||||
wget_func `cat $TMPDIR/out_$THREAD.html | iconv -f cp1251 -t utf-8 | grep download.php | sed 's/.*<a href=\([^>]*\).*/\1/' | cut -d '"' -f 2` "-P "$(($THREAD / 100))/" --content-disposition"
|
wget_func `cat $TMPDIR/out_$THREAD.html | iconv -f cp1251 -t utf-8 | grep download.php | sed 's/.*<a href=\([^>]*\).*/\1/' | cut -d '"' -f 2` "-P "$(($THREAD / 100))/" --content-disposition"
|
||||||
|
# Check for bad wget saving...
|
||||||
|
if [[ -f login.php ]] ; then
|
||||||
|
echo -ne ".имя файла потеряно. используется сгенерированное скриптом.."
|
||||||
|
mv login.php "$(($THREAD / 100 ))"/$THREAD.torrent
|
||||||
|
fi
|
||||||
echo -ne ".\n"
|
echo -ne ".\n"
|
||||||
popd >> /dev/null
|
popd >> /dev/null
|
||||||
done < $TMPDIR/alllinkz.txt
|
done < $TMPDIR/alllinkz.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user