general update
This commit is contained in:
parent
67a7d2504d
commit
1e57edc3c0
2 changed files with 11 additions and 8 deletions
|
|
@ -42,7 +42,7 @@ function mixdrop_check_if_file_is_alive () {
|
|||
file_id=${file_id##*/}
|
||||
>&2 echo "File ID: $file_id"
|
||||
|
||||
>&2 echo "URL to call: https://api.highload.to/file/info?file=$file_id&login=$api_login&key=$api_key"
|
||||
>&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"
|
||||
|
|
|
|||
|
|
@ -10,15 +10,18 @@ function upload_to_voe () {
|
|||
upload_server=$(curl -s "https://voe.sx/api/upload/server?key=$api_key")
|
||||
upload_server=$(echo $upload_server | jq ".result")
|
||||
upload_server=${upload_server//\"}
|
||||
# echo "Upload Target: $upload_server" >&2
|
||||
echo "Upload Target: $upload_server" >&2
|
||||
|
||||
voe_url=$(curl -X POST $upload_server -H "Content-Type: multipart/form-data" -H 'Cache-Control: no-cache' -F action=push -F api_key=$api_key -F "file=@\"$filepath\"")
|
||||
voe_url=${voe_url#*<textarea name=\"fn\">}
|
||||
voe_url=${voe_url%%</textarea>*}
|
||||
voe_url="https://voe.sx/"${voe_url}
|
||||
# echo "voe_url: $voe_url" >&2
|
||||
voe_url=$(curl -X POST $upload_server -H "Content-Type: multipart/form-data" -H 'Cache-Control: no-cache' -F action=push -F key=$api_key -F "file=@\"$filepath\"")
|
||||
|
||||
echo "$voe_url"
|
||||
echo "$voe_url" >&2
|
||||
|
||||
voe_url=$(echo $voe_url | jq ".file")
|
||||
voe_url=$(echo $voe_url | jq ".file_code")
|
||||
voe_url=${voe_url//\"}
|
||||
echo "voe_url: $voe_url" >&2
|
||||
|
||||
echo "https://voe.sx/$voe_url"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue