v2024.11.08 (2)

This commit is contained in:
kittykat 2024-11-08 22:59:11 +00:00
parent d97ea22fc1
commit 5927dc9054
2 changed files with 6 additions and 7 deletions

12
hosts/nippy.sh Executable file → Normal file
View file

@ -1,6 +1,6 @@
#! Name: nippy.sh #! Name: nippy.sh
#! Author: kittykat #! Author: kittykat
#! Version: 2024.10.21 #! Version: 2024.11.28
#! Desc: Add support for downloading and processing of urls for a new host #! Desc: Add support for downloading and processing of urls for a new host
#! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder #! Usage: Copy this file into the ./${ScriptDir}/hosts/ folder
#! #!
@ -85,7 +85,7 @@ nippy_FetchFileInfo() {
elif grep -Eqi "nippyshare.me" <<< "$remote_url"; then elif grep -Eqi "nippyshare.me" <<< "$remote_url"; then
nippyhost="nippyshare.me" nippyhost="nippyshare.me"
elif grep -Eqi "nippydrive.com" <<< "$remote_url"; then elif grep -Eqi "nippydrive.com" <<< "$remote_url"; then
nippyhost="nippyshare.com" nippyhost="nippydrive.com"
elif grep -Eqi "nippybox.com" <<< "$remote_url"; then elif grep -Eqi "nippybox.com" <<< "$remote_url"; then
nippyhost="nippybox.com" nippyhost="nippybox.com"
elif grep -Eqi "nippyfile.com" <<< "$remote_url"; then elif grep -Eqi "nippyfile.com" <<< "$remote_url"; then
@ -103,9 +103,7 @@ nippy_FetchFileInfo() {
elif grep -Eqi "dbree.org" <<< "$remote_url"; then elif grep -Eqi "dbree.org" <<< "$remote_url"; then
nippyhost="dbree.me" nippyhost="dbree.me"
fi fi
if grep -Eqi "nippydrive.com" <<< "$remote_url"; then if grep -Eqi "dbree.org" <<< "$remote_url"; then
fixed_url=${remote_url/nippydrive.com/nippyshare.com}
elif grep -Eqi "dbree.org" <<< "$remote_url"; then
fixed_url=${remote_url/dbree.org/dbree.me} fixed_url=${remote_url/dbree.org/dbree.me}
else else
fixed_url=${remote_url} fixed_url=${remote_url}
@ -120,7 +118,7 @@ nippy_FetchFileInfo() {
trap "rm -f ${WorkDir}/.flocks/${CLEANSTRING}; rm -f ${nippy_cookie_jar}; echo ""; tput cnorm; exit" 0 1 2 3 6 15 trap "rm -f ${WorkDir}/.flocks/${CLEANSTRING}; rm -f ${nippy_cookie_jar}; echo ""; tput cnorm; exit" 0 1 2 3 6 15
response=$(tor_curl_request --insecure -L -s -b "${nippy_cookie_jar}" -c "${nippy_cookie_jar}" "$fixed_url") response=$(tor_curl_request --insecure -L -s -b "${nippy_cookie_jar}" -c "${nippy_cookie_jar}" "$fixed_url")
if [ "${DebugAllEnabled}" == "true" ] ; then if [ "${DebugAllEnabled}" == "true" ] ; then
debugHtml "${remote_url##*/}" "nippy_dwnpage$i" "${response}" debugHtml "${remote_url##*/}" "nippy_dwnpage$i" "fixed_url: ${fixed_url}"$'\n'"${response}"
fi fi
if [[ -z $response ]] ; then if [[ -z $response ]] ; then
rm -f "${nippy_cookie_jar}"; rm -f "${nippy_cookie_jar}";
@ -144,7 +142,7 @@ nippy_FetchFileInfo() {
removedDownload "${remote_url}" removedDownload "${remote_url}"
return 1 return 1
fi fi
if grep -Eqi "Download is temporarily unavailable|Please try back later" <<< "$response"; then if grep -Eqi "is temporarily unavailable|Please try back later" <<< "$response"; then
rm -f "${nippy_cookie_jar}"; rm -f "${nippy_cookie_jar}";
if ((i == maxfetchretries)) ; then if ((i == maxfetchretries)) ; then
printf "\\n" printf "\\n"

1
mad.sh
View file

@ -34,6 +34,7 @@
ScriptVersion=2024.11.08 ScriptVersion=2024.11.08
#================================================= #=================================================
# Recent Additions # Recent Additions
# 2024.11.08 - [nippy] Fix nippydrive.com. Update detection of temporarily unavailable response.
# 2024.11.08 - [up2share] Fix download url (https) # 2024.11.08 - [up2share] Fix download url (https)
# 2024.11.08 - [up2share] Fix advertised filesize on a redirection # 2024.11.08 - [up2share] Fix advertised filesize on a redirection
# 2024.11.06 - [SkipUrlsInDownloadsCompletedTxt] Fix blank url check # 2024.11.06 - [SkipUrlsInDownloadsCompletedTxt] Fix blank url check