|
|
|
@ -251,6 +251,11 @@ LOG_LIMIT="1000" |
|
|
|
UNLOCK_STATUS='Yes 🎉' |
|
|
|
UNLOCK_STATUS='Yes 🎉' |
|
|
|
NOT_UNLOCK_STATUS='No 😰' |
|
|
|
NOT_UNLOCK_STATUS='No 😰' |
|
|
|
timedatectl set-timezone Asia/Shanghai |
|
|
|
timedatectl set-timezone Asia/Shanghai |
|
|
|
|
|
|
|
LMC999=\$(curl -sSLm4 https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) |
|
|
|
|
|
|
|
RESULT_TITLE=\$(echo "$LMC999" | grep "result.*netflix.com/title/" | sed "s/.*title\/\([^\"]*\).*/\1/") |
|
|
|
|
|
|
|
REGION_TITLE=\$(echo "$LMC999" | grep "region.*netflix.com/title/" | sed "s/.*title\/\([^\"]*\).*/\1/") |
|
|
|
|
|
|
|
RESULT_TITLE=\${RESULT_TITLE:-'f |
|
|
|
|
|
|
|
'}; REGION_TITLE=\${REGION_TITLE:-'80018499'} |
|
|
|
|
|
|
|
|
|
|
|
if [[ \$(pgrep -laf ^[/d]*bash.*warp_unlock | awk -F, '{a[\$2]++}END{for (i in a) print i" "a[i]}') -le 2 ]]; then |
|
|
|
if [[ \$(pgrep -laf ^[/d]*bash.*warp_unlock | awk -F, '{a[\$2]++}END{for (i in a) print i" "a[i]}') -le 2 ]]; then |
|
|
|
|
|
|
|
|
|
|
|
@ -277,9 +282,9 @@ ip |
|
|
|
|
|
|
|
|
|
|
|
check0(){ |
|
|
|
check0(){ |
|
|
|
RESULT[0]=""; REGION[0]=""; R[0]=""; |
|
|
|
RESULT[0]=""; REGION[0]=""; R[0]=""; |
|
|
|
RESULT[0]=\$(curl --user-agent "\${UA_Browser}" \$NIC -fsL --write-out %{http_code} --output /dev/null --max-time 10 "https://www.netflix.com/title/81215567" 2>&1) |
|
|
|
RESULT[0]=\$(curl --user-agent "\${UA_Browser}" \$NIC -fsL --write-out %{http_code} --output /dev/null --max-time 10 "https://www.netflix.com/title/\$RESULT_TITLE" 2>&1) |
|
|
|
if [[ \${RESULT[0]} = 200 ]]; then |
|
|
|
if [[ \${RESULT[0]} = 200 ]]; then |
|
|
|
REGION[0]=\$(curl --user-agent "\${UA_Browser}" \$NIC -fs --max-time 10 --write-out %{red irect_url} --output /dev/null "https://www.netflix.com/title/80018499" | sed 's/.*com\/\([^-/]\{1,\}\).*/\1/g' | tr '[:lower:]' '[:upper:]') |
|
|
|
REGION[0]=\$(curl --user-agent "\${UA_Browser}" \$NIC -fs --max-time 10 --write-out %{red irect_url} --output /dev/null "https://www.netflix.com/title/\$REGION_TITLE" | sed 's/.*com\/\([^-/]\{1,\}\).*/\1/g' | tr '[:lower:]' '[:upper:]') |
|
|
|
REGION[0]=\${REGION[0]:-'US'} |
|
|
|
REGION[0]=\${REGION[0]:-'US'} |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo "\${REGION[0]}" | grep -qi "\$EXPECT" && R[0]="\$UNLOCK_STATUS" || R[0]="\$NOT_UNLOCK_STATUS" |
|
|
|
echo "\${REGION[0]}" | grep -qi "\$EXPECT" && R[0]="\$UNLOCK_STATUS" || R[0]="\$NOT_UNLOCK_STATUS" |
|
|
|
|