update doodstream url
This commit is contained in:
parent
1705bf1d87
commit
8b25a1f963
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ function upload_to_doodstream () {
|
||||||
|
|
||||||
# echo "filesha256 $filesha256" >&2
|
# echo "filesha256 $filesha256" >&2
|
||||||
|
|
||||||
upload_server=$(curl -s -X GET "https://doodapi.com/api/upload/server?key=$api_key" -H "Content-Type: application/json")
|
upload_server=$(curl -s -X GET "https://doodapi.co/api/upload/server?key=$api_key" -H "Content-Type: application/json")
|
||||||
echo "Upload_URL $upload_server" >&2
|
echo "Upload_URL $upload_server" >&2
|
||||||
upload_server=$(echo $upload_server | jq ".result")
|
upload_server=$(echo $upload_server | jq ".result")
|
||||||
upload_server=${upload_server//\"}
|
upload_server=${upload_server//\"}
|
||||||
|
|
@ -49,9 +49,9 @@ function doodstream_check_if_file_is_alive () {
|
||||||
file_id=${file_url##*/}
|
file_id=${file_url##*/}
|
||||||
>&2 echo "File ID: $file_id"
|
>&2 echo "File ID: $file_id"
|
||||||
|
|
||||||
>&2 echo "URL to call: https://doodapi.com/api/file/check?key=$api_key&file_code=$file_id"
|
>&2 echo "URL to call: https://doodapi.co/api/file/check?key=$api_key&file_code=$file_id"
|
||||||
|
|
||||||
response=$(curl -s -X GET "https://doodapi.com/api/file/check?key=$api_key&file_code=$file_id" -H "Content-Type: multipart/form-data")
|
response=$(curl -s -X GET "https://doodapi.co/api/file/check?key=$api_key&file_code=$file_id" -H "Content-Type: multipart/form-data")
|
||||||
>&2 echo "Response: $response"
|
>&2 echo "Response: $response"
|
||||||
|
|
||||||
is_alive=$(echo $response | jq ".result")
|
is_alive=$(echo $response | jq ".result")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue