# 2025.03.30 - [ranoz] Fix to handle new cookie requirements
# 2025.03.28 - [up_ranoz] Fix to handle new cookie requirements # 2025.03.28 - [up_anonfileio] Add anonfile.io as upload host # 2025.03.28 - [anonfileio] Add anonfile.io as download host # 2025.03.25 - [up_ranoz] Disable MAD randomized extension on uploads (7z block disabled) # 2025.03.21 - [mad] Update random user agents 2025.03 # 2025.03.20 - [jira hosts] Update 3 jira hosts (retention and maxsize) # 2025.03.16 - [torup] Fix torup cookies # 2025.03.15 - [1fichier] Get new node prior to cdn download (greater possibility of a faster node) # 2025.03.10 - [uploadscloud] Add uploadscloud.com as download host
This commit is contained in:
parent
a62ac882de
commit
270e378e08
18 changed files with 1338 additions and 630 deletions
43
hosts/anonfileio.sh
Normal file
43
hosts/anonfileio.sh
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#! Name: anonfileio.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2025.03.28
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
#!
|
||||
#! ------------ REQUIRED SECTION ---------------
|
||||
#! @[UPDATE] HostAndDomainRegexes: This string is loaded into mad.sh and allows dynamic handling of new url data
|
||||
#! Format: '/HostCode/HostNick/HostFuncPrefix:HostDomainRegex@'
|
||||
#! HostCode: <aUniqueCodeForHost> (ie. 'fh' for filehaus -- cannot be used by other hosts)
|
||||
#! HostNick: What is displayed throughout MAD output (ie. 'filehaus' -- "urls.txt has 10 filehaus.." will be displayed)
|
||||
#! HostFuncPrefix: <aUniqueStringThatMustPrefixHostFunctions> (ie. 'fh' -- fh_DownloadFile(), fh_FetchFileInfo() .. )
|
||||
#! * Note: Must begin with a letter a-z (functions beginning with numbers are no bueno)
|
||||
#! HostDomainRegex: The regex used to verify matching urls
|
||||
HostCode='afio'
|
||||
HostNick='anonfile.io'
|
||||
HostFuncPrefix='afio'
|
||||
HostUrls='anonfile.io'
|
||||
HostDomainRegex='^(http|https)://anonfile\.io/(f/|api/download/)'
|
||||
#!
|
||||
#! !! DO NOT UPDATE OR REMOVE !!
|
||||
#! This merges the Required HostAndDomainRegexes into mad.sh
|
||||
ListHostAndDomainRegexes=${ListHostAndDomainRegexes}'/'${HostCode}'/'${HostNick}'/'${HostFuncPrefix}'/'${HostUrls}':'${HostDomainRegex}'@'
|
||||
#!
|
||||
#!
|
||||
#! ------------ (1) Host Main Download Function --------------- #
|
||||
#!
|
||||
#! @REQUIRED: Host Main Download function
|
||||
#! Must be named specifically as such:
|
||||
#! <HostFuncPrefix>_DownloadFile()
|
||||
afio_DownloadFile() {
|
||||
local pUrl="$1"
|
||||
local pFileCnt="$2"
|
||||
local pUrlMod="$pUrl"
|
||||
local filecode="${pUrlMod##*/}"
|
||||
if ! grep -Eqi '^https://anonfile.io/api/download/' <<< "${pUrlMod}" ; then
|
||||
Modify to api/download
|
||||
pUrlMod="https://anonfile.io/api/download/$filecode"
|
||||
echo -e "[${BLUE}ModifiedUrl${NC}]: ${pUrlMod}"
|
||||
fi
|
||||
direct_DownloadFile "$pUrl" "$pFileCnt" "$pUrlMod"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue