# 2025.02.25 - [mad + allhosts] Re-engineer BadHtml scan to only scan the first 10kb of downloaded partials
# 2025.02.24 - [pixeldrain] Update "The file is IP limited" response handling retry # 2025.02.22 - [blackcloud_onion] Add bcloud.onion download handling (url fixing) # 2025.02.21 - [anonfile] Update cdn link parsing to handle new subdomains # 2025.02.21 - [anonfile] Add download limit reached response handling # 2025.02.21 - [anonfile] Update file info retrieval (head no longer responds) # 2025.02.21 - [sendspace] Add sendspace.com as download host # 2025.02.21 - [oshi / up_oshi] Revert /nossl/ changes for oshi.at (clearnet)
This commit is contained in:
parent
6f338dec65
commit
83d17967d6
54 changed files with 1316 additions and 822 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: pixeldrain.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2024.09.13
|
||||
#! Version: 2025.02.24
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -194,13 +194,16 @@ pd_FetchFileInfo() {
|
|||
return 1
|
||||
fi
|
||||
elif grep -i -Eq "ip_download_limited_captcha_required" <<< "$response"; then
|
||||
if ((i > 1)) ; then
|
||||
if ((i >= 5)) ; then
|
||||
printf "\\n"
|
||||
echo -e "${RED}| Failed: The file is IP limited… (used max bandwidth/48hr, try again later)${NC}"
|
||||
exitDownloadNotAvailable=true
|
||||
failedRetryDownload "${remote_url}" "Captcha IP Limited (used max bandwidth/48hr, try again later)" ""
|
||||
return 1
|
||||
else
|
||||
printf " ."
|
||||
continue
|
||||
fi
|
||||
echo -e "${RED}| Failed: The file is IP limited… (used max bandwidth/48hr, try again later)${NC}"
|
||||
exitDownloadNotAvailable=true
|
||||
failedRetryDownload "${remote_url}" "Captcha IP Limited (used max bandwidth/48hr, try again later)" ""
|
||||
return 1
|
||||
elif ! grep -q -Eqi '"availability":""' <<< "$response"; then
|
||||
pd_message=$(grep -o -P '(?<="availability":").+?(?=")' <<< "$response")
|
||||
if ((i > 1)) ; then
|
||||
|
|
@ -352,7 +355,7 @@ pd_GetFile() {
|
|||
if [[ -f "$file_path" ]] ; then
|
||||
received_file_size=$(stat --format="%s" "$file_path" | tr -d '[:space:]')
|
||||
fi
|
||||
if CheckNoHtml "$remote_url" "$filename" "$file_path" ; then
|
||||
if CheckNoHtml "$remote_url" "$filename" "$file_path" "$((received_file_size - pd_presize))" ; then
|
||||
containsHtml=false
|
||||
else
|
||||
containsHtml=true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue