# 2025.01.18 - [mad] Updates to url_encode function and addition of conversion of utf8 to ascii function # 2025.01.17 - [ranoz] Servers response to resume changed, set as no resume type for now # 2025.01.17 - [uwabaki] Add download handling for uwabaki onion address urls # 2025.01.16 - [ranoz] Fix filenames with unicode chars in the download url # 2025.01.16 - [up_axfc] Move convert utf8 to ascii to mad function # 2025.01.16 - [up_uwabaki] Add uwabaki.party as upload host (1GB, no expiration, no DMCA, no logs)
42 lines
2.2 KiB
Bash
42 lines
2.2 KiB
Bash
#! Name: uwabaki.sh
|
|
#! Author: kittykat
|
|
#! Version: 2025.01.17
|
|
#! 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='uwab'
|
|
HostNick='uwabaki'
|
|
HostFuncPrefix='direct'
|
|
HostUrls='uwabaki.party, ufilesviwg67gcdyivvuanbx27c54bohd2e4mrichg5yrsaohom5dvid.onion'
|
|
HostDomainRegex='^(http|https)://(.*\.)?files\.uwabaki\.party/'
|
|
#!
|
|
#! !! DO NOT UPDATE OR REMOVE !!
|
|
#! This merges the Required HostAndDomainRegexes into mad.sh
|
|
ListHostAndDomainRegexes=${ListHostAndDomainRegexes}'/'${HostCode}'/'${HostNick}'/'${HostFuncPrefix}'/'${HostUrls}':'${HostDomainRegex}'@'
|
|
#!
|
|
#! Additional domains (oshi.onion)
|
|
HostCode='uwab'
|
|
HostNick='uwabaki'
|
|
HostFuncPrefix='direct'
|
|
HostUrls='uwabaki.party, ufilesviwg67gcdyivvuanbx27c54bohd2e4mrichg5yrsaohom5dvid.onion'
|
|
HostDomainRegex='^(http|https)://ufilesviwg67gcdyivvuanbx27c54bohd2e4mrichg5yrsaohom5dvid\.onion'
|
|
#!
|
|
#! !! 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 --------------- #
|
|
#!
|
|
#! This is a direct= download host, so all the functions are already in mad.sh
|
|
#! Since the HostFuncPrefix is defined above as "direct", nothing further needs to be done as it will
|
|
#! call the direct_DownloadFile() function already in mad.sh
|