# 2025.02.02 - [mad] Add function to handle urlencode of cyrillic / kanji / latin / etc
# 2025.02.02 - [ranoz] Fix handling filenames containing cyrillic / kanji / latin chars # 2025.02.02 - [all] Reduced character processing for urlencode to special url characters # 2025.01.30 - [isupload] Add handling of 404 Not Found on initial page fetch # 2025.01.23 - [mad] Do not check for supported host on "direct=" lines # 2025.01.19 - [fileditch] Add direct download url processing fileditchfiles.me (though they block Tor now)
This commit is contained in:
parent
0ba636a488
commit
fd4723eb24
7 changed files with 519 additions and 460 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: fileditch.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2024.11.18
|
||||
#! Version: 2025.01.19
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -17,7 +17,18 @@ HostCode='fd'
|
|||
HostNick='fileditch'
|
||||
HostFuncPrefix='fd'
|
||||
HostUrls='fileditch.com, fileditch.me'
|
||||
HostDomainRegex='^(http|https)://(.*\.)?(fileditch\.com|fileditchstuff.me)/'
|
||||
HostDomainRegex='^(http|https)://(.*\.)?(fileditch\.com|fileditchstuff\.me)/'
|
||||
#!
|
||||
#! !! DO NOT UPDATE OR REMOVE !!
|
||||
#! This merges the Required HostAndDomainRegexes into mad.sh
|
||||
ListHostAndDomainRegexes=${ListHostAndDomainRegexes}'/'${HostCode}'/'${HostNick}'/'${HostFuncPrefix}'/'${HostUrls}':'${HostDomainRegex}'@'
|
||||
#!
|
||||
#!
|
||||
HostCode='fd'
|
||||
HostNick='fileditch'
|
||||
HostFuncPrefix='direct'
|
||||
HostUrls='fileditch.com, fileditch.me'
|
||||
HostDomainRegex='^(http|https)://(.*\.)?fileditchfiles\.me/file\.php\?f=/'
|
||||
#!
|
||||
#! !! DO NOT UPDATE OR REMOVE !!
|
||||
#! This merges the Required HostAndDomainRegexes into mad.sh
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: isupload.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2025.01.05
|
||||
#! Version: 2025.01.30
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -119,7 +119,7 @@ isup_FetchFileInfo() {
|
|||
continue
|
||||
fi
|
||||
fi
|
||||
if grep -Eqi "File was removed|There is no such file|File was deleted|File not found" <<< "$response"; then
|
||||
if grep -Eqi "404 Not Found|File was removed|There is no such file|File was deleted|File not found" <<< "$response"; then
|
||||
rm -f "${isup_cookie_jar}";
|
||||
printf "\\n"
|
||||
echo -e "${RED}| The file was not found. It could be deleted or expired.${NC}"
|
||||
|
|
@ -182,7 +182,7 @@ isup_FetchFileInfo() {
|
|||
continue
|
||||
fi
|
||||
fi
|
||||
if grep -Eqi 'No such file with this filename|File was deleted|File not found' <<< "$response"; then
|
||||
if grep -Eqi '404 Not Found|No such file with this filename|File was deleted|File not found' <<< "$response"; then
|
||||
rm -f "${isup_cookie_jar}";
|
||||
printf "\\n"
|
||||
echo -e "${RED}| The file was not found. It could be deleted or expired.${NC}"
|
||||
|
|
@ -266,7 +266,7 @@ isup_FetchFileInfo() {
|
|||
debugHtml "${remote_url##*/}" "isup_head$j" "download_url: ${download_url}"$'\n'"${file_header}"
|
||||
fi
|
||||
if [ ! -z "$file_header" ] ; then
|
||||
if grep -Eqi '404 Not Found' <<< "${file_header}" ; then
|
||||
if grep -Eqi '404 Not Found|' <<< "${file_header}" ; then
|
||||
printf "\\n"
|
||||
echo -e "${RED}| Not Found (404). The file has been removed.${NC}"
|
||||
removedDownload "${remote_url}"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#! Name: ranoz.sh
|
||||
#! Author: kittykat
|
||||
#! Version: 2025.01.18
|
||||
#! Version: 2025.02.02
|
||||
#! Desc: Add support for downloading and processing of urls for a new host
|
||||
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
|
||||
#!
|
||||
|
|
@ -132,6 +132,7 @@ rz_FetchFileInfo() {
|
|||
url_token=${url_postfix##*\?}
|
||||
url_enc_fname=$(urlencode_literal_grouped_case ${url_fname})
|
||||
download_url="${url_prefix}/${url_enc_fname}?${url_token}"
|
||||
filename=$url_fname
|
||||
break
|
||||
else
|
||||
if [ $i == $maxfetchretries ] ; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue