Compare commits
2 commits
1705bf1d87
...
f48ce27884
| Author | SHA1 | Date | |
|---|---|---|---|
| f48ce27884 | |||
| 8b25a1f963 |
2 changed files with 5 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ function upload_to_doodstream () {
|
|||
|
||||
# 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
|
||||
upload_server=$(echo $upload_server | jq ".result")
|
||||
upload_server=${upload_server//\"}
|
||||
|
|
@ -49,9 +49,9 @@ function doodstream_check_if_file_is_alive () {
|
|||
file_id=${file_url##*/}
|
||||
>&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"
|
||||
|
||||
is_alive=$(echo $response | jq ".result")
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ 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.club/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")
|
||||
response=$(curl -s -X GET "https://api.mixdrop.club/fileinfo?email=$api_login&key=$api_key&ref[]=$file_id" -H "Content-Type: multipart/form-data")
|
||||
# >&2 echo "Response: $response"
|
||||
|
||||
is_alive=$(echo $response | jq ".success")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue