Konsolenausgaben reduziert
This commit is contained in:
parent
72715c5920
commit
5072f45099
1 changed files with 3 additions and 3 deletions
|
|
@ -46,17 +46,17 @@ function ninjastream_check_if_file_is_alive () {
|
|||
# file_id=${file_url%/*}
|
||||
# >&2 echo "File ID: $file_id"
|
||||
file_id=${file_url##*/}
|
||||
>&2 echo "File ID: $file_id"
|
||||
# >&2 echo "File ID: $file_id"
|
||||
|
||||
response=$(curl -s -X POST "https://api.ninjastream.to/api/file/get" -F id=$file_id )
|
||||
>&2 echo "Response: $response"
|
||||
# >&2 echo "Response: $response"
|
||||
|
||||
is_alive=$(echo $response | jq ".message")
|
||||
# is_alive=$(echo $is_alive | jq ".data")
|
||||
# is_alive=$(echo $is_alive | jq "first(.[])")
|
||||
# is_alive=$(echo $is_alive | jq ".status")
|
||||
|
||||
>&2 echo $is_alive
|
||||
# >&2 echo $is_alive
|
||||
|
||||
if [ "$is_alive" == "\"File not found\"" ]; then
|
||||
echo "false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue