mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-11 00:26:42 +00:00
get_antizapret parse improvement
This commit is contained in:
parent
539b44298c
commit
0697347673
@ -11,7 +11,7 @@ ZIPLISTTMP=/tmp/zapret-ip.txt
|
||||
|
||||
$EXEDIR/get_user.sh
|
||||
|
||||
curl --fail --max-time 60 --max-filesize 4194304 "$ZURL" | sed -nre "s/^.*\"([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\".*$/\1/p" >$ZIPLISTTMP &&
|
||||
curl --fail --max-time 60 --max-filesize 4194304 "$ZURL" | sed -nre "s/\"([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\"/\1\n/gp" | sed -nre "s/^[^0-9]*([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$/\1/p" >$ZIPLISTTMP &&
|
||||
{
|
||||
dlsize=$(wc -c "$ZIPLISTTMP" | cut -f 1 -d ' ')
|
||||
if test $dlsize -lt 20480; then
|
||||
|
Loading…
Reference in New Issue
Block a user