# 2024.12.26 - [up_kouploader / up_axfc / up_torup] Fixed failedRetryUpload (was using download logging)

#               * Thanks Belky
# 2024.12.26 - [anonfile / up_anonfile] Add anonfile.de as upload / download host
# 2024.12.25 - [dashfile / up_dashfile] Add dashfile.net as upload / download host
# 2024.12.25 - [isupload] Change to use tor_curl_request_extended (server response is often slow)
#               - Accept 200 OK response to continue (do not require filename / filesize)
# 2024.12.25 - [fileblade] Add response handling for free file download dissallowed > 100MB.
#               "The file owner does not allow FREE users to download files which are over 100 MB"
# 2024.12.25 - [mad] Add "UploadHiveRandomizeExt" option to config with default=true
# 2024.12.25 - [uploadhive / up_uploadhive] Update renaming random ext files to their original names
#               - Handle multipart 7z & rar (abc.7z.###, abc.part#.rar)
# 2024.12.25 - [syspro / up_syspro] Add share.syspro.com.br as upload / download host
# 2024.12.24 - [mad] Add EnabledUploadHosts / EnabledDownloadHosts setting to fine-tune which hosts to use
#               ** Options: recommended, online, all (Default=recommended)
#               - recommended: loads all hosts verified working with MAD
#               - online: loads all hosts available online / working (includes captcha / js restricted)
#               - all: loads all hosts in hosts folder
# 2024.12.24 - [up_ateasystems / ateasystems] Add share.ateasystems.com as upload / download host
# 2024.12.23 - [up_uploadbay / uploadbay] Add uploadbay.net as upload / download host
# 2024.12.23 - [up_herbolistique / herbolistique] Add transfert.herbolistique.com as upload / download host
# 2024.12.23 - [uploadhive] Auto-rename random extension downloads
# 2024.12.23 - [up_uploadhive] Change upload file extension to random 3 letters (uhive blocks .7z, .zip, .rar now)
# 2024.12.23 - [up_offshorecat] Fixed upload. Updated apikey.
# 2024.12.23 - [up_fileditch] Fixed upload. Added response handling for Tor Blocked node (retries)
# 2024.12.23 - [up_freesocial / freesocial] Add files.freesocial.co as upload / download host
# 2024.12.23 - [up_cyssoux / cyssoux] Add partage.cyssoux.fr as upload / download host
# 2024.12.22 - [mad] Add jira_Upload function -- used for all jirafeau hosts
# 2024.12.22 - [up_*AllJiraHosts*] Consolidated / moved all hosts upload functions to mad.sh
#               - Minimized jira host code (~6000 lines of duplicates removed)
#               - Jira hosts: acid, anarchaserver, depotkaz, dictvm, eddowding, familleflender, filesquid,
#                 free4e, harrault, linxx, moocloud, nantes, netlib, skrepr, soyjak
# 2024.12.20 - [fileblade / up_fileblade] Add fileblade.com as upload / download host
# 2024.12.20 - [isupload / up_isupload] Add isupload.com as upload / download host
# 2024.12.15 - [mediafire] Add mediafire download link processing
# 2024.12.12 - [dictvm / up_dictvm] Add dictvm.org as upload / download host
# 2024.12.12 - [eddowding / up_eddowding] Add eddowding.com as upload / download host
# 2024.12.12 - [up_pixeldrain] Modify upload to use PUT
# 2024.12.12 - [mad] Update pixeldrain api key
# 2024.12.09 - [ranoz] Fix filenames with spaces
# 2024.11.29 - [innocent] Update to use tor_curl_request_extended for head/get
# 2024.11.29 - [quax] Update 404 Not found response handling
This commit is contained in:
kittykat 2024-12-27 19:47:09 +00:00
parent ec7d121c0e
commit e6804e01e1
Signed by: kittykat
GPG key ID: E3F1556620F70C3C
58 changed files with 6609 additions and 2223 deletions

View file

@ -1,6 +1,6 @@
#! Name: uploadhive.sh
#! Author: kittykat
#! Version: 2024.09.13
#! Version: 2024.12.25
#! Desc: Add support for downloading and processing of urls for a new host
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
#!
@ -363,6 +363,63 @@ uhive_GetFile() {
fi
done
rm -f "$flockDownload";
if grep -Eqi '^.*--7_\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming 7z)...${NC}"
origext="7z"
mv "$file_path" "${file_path%\--7_*}.$origext"
filename="${filename%\--7_*}.$origext"
file_path="${file_path%\--7_*}.$origext"
elif grep -Eqi '^.*--z_\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming zip)...${NC}"
origext="zip"
mv "$file_path" "${file_path%\--z_*}.$origext"
filename="${filename%\--z_*}.$origext"
file_path="${file_path%\--z_*}.$origext"
elif grep -Eqi '^.*_-p.*--r_\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming mp rar)...${NC}"
origext="rar"
partnum="${filename##*_-p}"
partnum="${partnum%--r_*}"
newfilepath="${file_path%_-p*}.part${partnum}.$origext"
mv "$file_path" "$newfilepath"
filename="${newfilepath##*/}"
file_path="${newfilepath}"
elif grep -Eqi '^.*--r_\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming rar)...${NC}"
origext="rar"
mv "$file_path" "${file_path%--r_*}.$origext"
filename="${filename%--r_*}.$origext"
file_path="${file_path%--r_*}.$origext"
elif grep -Eqi '^.*--t_\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming tar)...${NC}"
origext="tar"
mv "$file_path" "${file_path%--t_*}.$origext"
filename="${filename%--t_*}.$origext"
file_path="${file_path%--t_*}.$origext"
elif grep -Eqi '^.*_-7--..._\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming)...${NC}"
origext=${filename##*--}
origext=${origext%_*}
newfilepath="${file_path%--*}.$origext"
newfilepath="${newfilepath//_-7/.7z}"
mv "$file_path" "$newfilepath"
filename="${newfilepath##*/}"
file_path="${newfilepath}"
elif grep -Eqi '^.*--..._\....$' <<< "$filename" ; then
echo -e ""
echo -e "${BLUE}| Found mad upload random extension file (renaming)...${NC}"
origext=${filename##*--}
origext=${origext%_*}
mv "$file_path" "${file_path%--*}.$origext"
filename="${filename%--*}.$origext"
file_path="${file_path%--*}.$origext"
fi
ProcessCompletedDownload "$remote_url" "$MoveToFolder" "$filecnt" "$filename" "$file_size_bytes" "$completed_location" "$file_path"
return 0
}