update
This commit is contained in:
parent
d1de3b397d
commit
286c4cab05
5 changed files with 6 additions and 10 deletions
|
|
@ -66,10 +66,8 @@ function highload_check_if_file_is_alive () {
|
|||
|
||||
# >&2 echo $is_alive
|
||||
|
||||
if [ "$is_alive" == "404" ]; then
|
||||
if [ "$is_alive" -eq "404" ]; then
|
||||
echo "false"
|
||||
# elif [ $is_alive = '500' ]; then
|
||||
# echo "false"
|
||||
else
|
||||
echo "true"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -42,10 +42,10 @@ function mixdrop_check_if_file_is_alive () {
|
|||
file_id=${file_id##*/}
|
||||
>&2 echo "File ID: $file_id"
|
||||
|
||||
>&2 echo "URL to call: https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id"
|
||||
# >&2 echo "URL to call: https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id"
|
||||
|
||||
response=$(curl -s -X GET "https://api.mixdrop.co/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id" -H "Content-Type: multipart/form-data")
|
||||
>&2 echo "Response: $response"
|
||||
# >&2 echo "Response: $response"
|
||||
|
||||
is_alive=$(echo $response | jq ".success")
|
||||
# is_alive=$(echo $is_alive | jq ".[0]")
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function streamhide_check_if_file_is_alive () {
|
|||
|
||||
if [ "$is_alive" == "\"Not found\"" ]; then
|
||||
echo "false"
|
||||
elif [ $is_alive = '200' ]; then
|
||||
elif [ $is_alive == "200" ]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
|
|
|
|||
|
|
@ -50,10 +50,8 @@ function streamtape_check_if_file_is_alive () {
|
|||
|
||||
# echo $is_alive
|
||||
|
||||
if [ $is_alive == '404' ]; then
|
||||
if [ $is_alive -eq '404' ]; then
|
||||
echo "false"
|
||||
# elif [ $is_alive = '500' ]; then
|
||||
# echo "false"
|
||||
else
|
||||
echo "true"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ function upstream_check_if_file_is_alive () {
|
|||
|
||||
if [ "$is_alive" == "\"Not found\"" ]; then
|
||||
echo "false"
|
||||
elif [ $is_alive = '200' ]; then
|
||||
elif [ $is_alive == "200" ]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue