# 2025.02.18 - [uploadhive] Add handling of the new /cgi-bin/dl.cgi/ url tickets (WIP)
# (unfortunately, this is tied to the requesting ip, so downloads get "Wrong IP") # 2025.02.18 - [up_oshi] Add Manage url as comment on uploads # 2025.02.18 - [up_oshi / oshi] use /nossl/ url and http # 2025.02.17 - [gofile] Add a random sleep if 429 response detected (too many requests) # 2025.02.17 - [*ALL] Audit and update all single bracket operations # 2025.02.17 - [filehaus] Fix downloading from fh # 2025.02.15 - [uploadbay] Update urls regex for acceptable alternate # 2025.02.15 - [up_sendnow] Add send.now as upload host # 2025.02.15 - [sendnow] Fix handling of filenames with special characters in url
This commit is contained in:
parent
d48116dbe3
commit
d62376f7a8
103 changed files with 3541 additions and 3517 deletions
10
plugins/pjscloud.sh
Executable file → Normal file
10
plugins/pjscloud.sh
Executable file → Normal file
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: pjscloud.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2024.10.14
|
||||
#! Version: 2025.02.18
|
||||
#! Desc: Wrapper to use PhantomJSCloud to retrieve url response
|
||||
#! Usage: Edit LoadPlugin="" line in mad.sh or mad.config
|
||||
#! LoadPlugin="pjscloud.sh"
|
||||
|
|
@ -27,21 +27,21 @@
|
|||
pjscloud_tor_request() {
|
||||
local plugName='pjscloud'
|
||||
local plugFunc='pjscloud_tor_request'
|
||||
if [ "${DebugPluginsEnabled}" == "true" ]; then
|
||||
if [[ "${DebugPluginsEnabled}" == "true" ]]; then
|
||||
echo -e "[${PINK}DEBUG${NC}]: Running ${PINK}$plugFunc${NC} in ${BLUE}$plugName${NC} ...${NC}"
|
||||
fi
|
||||
pjs_targeturl="$1"
|
||||
pjs_data="$2"
|
||||
if [ -z "$pjs_targeturl" ]; then
|
||||
if [[ -z "$pjs_targeturl" ]]; then
|
||||
echo "Aborting: No target url specified."
|
||||
fi
|
||||
GetRandomPjsKey
|
||||
if [ ! -z "$pjs_targeturl" ] && [ ! -z "$pjs_data" ] ; then
|
||||
if [[ ! -z "$pjs_targeturl" ]] && [[ ! -z "$pjs_data" ]] ; then
|
||||
pjs_urldata='{"url":"'"$pjs_targeturl"'", urlSettings:{"operation":"POST", "data":"'"$pjs_data"'"}, "renderType":"plainText"}'
|
||||
else
|
||||
pjs_urldata='{"url":"'"$pjs_targeturl"'", "renderType":"plainText"}'
|
||||
fi
|
||||
if [ "${UseTorCurlImpersonate}" == "true" ]; then
|
||||
if [[ "${UseTorCurlImpersonate}" == "true" ]]; then
|
||||
response=$("${curl_impersonate[@]}" --proxy "socks5h://${tor_identity}@${TorIp}:${torPort}" \
|
||||
--connect-timeout ${ConnectTimeout} \
|
||||
--insecure -k -s \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue