# 2025.02.20 - [up_ranoz] Fixed parsing of ranoz upload link (cloudflare)
# 2025.02.20 - [sendnow] Better handling of sendnow new Tor ip blocking # 2025.02.20 - [up_ranoz / up_uploadhive] Add obfuscation of .7z in multipart filename that was missing
This commit is contained in:
parent
d62376f7a8
commit
6f338dec65
7 changed files with 456 additions and 449 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: up_ranoz.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2025.02.14
|
||||
#! Version: 2025.02.20
|
||||
#! Desc: Add support for uploading files to bedrive.ru
|
||||
#! Info: Files are accessible at https://ranoz.gg/file/<file_code>
|
||||
#! MaxSize: 20GB
|
||||
|
|
@ -115,7 +115,8 @@ rz_PostFile() {
|
|||
elif [[ "$origext" == "tar" ]]; then
|
||||
tmpfilepath="${filepath%.*}--t_.${randomext}"
|
||||
elif [[ "${filepath##*/}" == *".7z."* ]]; then
|
||||
tmpfilepath="${filepath%.*}_-7--${origext}_.${randomext}"
|
||||
tmpfilepath="${filepath%\.7z*}${filepath##*\.7z}"
|
||||
tmpfilepath="${tmpfilepath%.*}_-7--${origext}_.${randomext}"
|
||||
else
|
||||
tmpfilepath="${filepath%.*}--${origext}_.${randomext}"
|
||||
fi
|
||||
|
|
@ -136,7 +137,7 @@ rz_PostFile() {
|
|||
fi
|
||||
if grep -Eqi '"upload_url":"https://' <<< "$response" ; then
|
||||
PostUrlHost=$(grep -oPi '(?<="upload_url":").*?(?=".*$)' <<< "$response")
|
||||
downloadLink=$(grep -oPi '(?<="url":").*?(?=".*$)' <<< "$response")
|
||||
downloadLink=$(grep -oPi '(?<=,"url":").*?(?=".*$)' <<< "$response")
|
||||
echo -e "${GREEN}| Upload url obtained...${NC}"
|
||||
else
|
||||
err=$(grep -oPi '(?<="errors":\[\{"message":").*?(?=".*$)' <<< "$response")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue