v2024.11.08
This commit is contained in:
parent
808d64768b
commit
d97ea22fc1
2 changed files with 7 additions and 4 deletions
7
hosts/up2share.sh
Executable file → Normal file
7
hosts/up2share.sh
Executable file → Normal file
|
|
@ -1,6 +1,6 @@
|
||||||
#! Name: up2share.sh
|
#! Name: up2share.sh
|
||||||
#! Author: kittykat
|
#! Author: kittykat
|
||||||
#! Version: 2024.09.13
|
#! Version: 2024.11.08
|
||||||
#! 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
|
||||||
#!
|
#!
|
||||||
|
|
@ -170,7 +170,7 @@ up2share_FetchFileInfo() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if grep -Eqi 'start automatically, <a href=' <<< "$response" ; then
|
if grep -Eqi 'start automatically, <a href=' <<< "$response" ; then
|
||||||
download_url="http://up2sha.re"$(grep -oPi '(?<=start automatically, <a href=").*?(?=">click here</a>)' <<< "$response")
|
download_url="https://up2sha.re"$(grep -oPi '(?<=start automatically, <a href=").*?(?=">click here</a>)' <<< "$response")
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
|
@ -244,7 +244,8 @@ up2share_FetchFileInfo() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
file_size_bytes=$(grep -oPi '(?<=content-length: ).*' <<< "$file_header")
|
subSearch=$(awk '/content-type: application\/octet-stream/,/content-transfer-encoding: binary/' <<< "$file_header")
|
||||||
|
file_size_bytes=$(grep -oPi '(?<=content-length: ).*?(?=$)' <<< "$subSearch")
|
||||||
file_size_bytes=${file_size_bytes//[$'\t\r\n']}
|
file_size_bytes=${file_size_bytes//[$'\t\r\n']}
|
||||||
if [[ -z "$file_size_bytes" ]]; then
|
if [[ -z "$file_size_bytes" ]]; then
|
||||||
if [ $j == $maxfetchretries ] ; then
|
if [ $j == $maxfetchretries ] ; then
|
||||||
|
|
|
||||||
4
mad.sh
Executable file → Normal file
4
mad.sh
Executable file → Normal file
|
|
@ -31,9 +31,11 @@
|
||||||
# * klonkerz - feedback and suggestions, url only processing
|
# * klonkerz - feedback and suggestions, url only processing
|
||||||
# * Everyone who provided feedback and helped test.. and those who wish to remain anonymous
|
# * Everyone who provided feedback and helped test.. and those who wish to remain anonymous
|
||||||
|
|
||||||
ScriptVersion=2024.11.06
|
ScriptVersion=2024.11.08
|
||||||
#=================================================
|
#=================================================
|
||||||
# Recent Additions
|
# Recent Additions
|
||||||
|
# 2024.11.08 - [up2share] Fix download url (https)
|
||||||
|
# 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
|
||||||
# 2024.11.06 - [ranoz] Add ranoz.gg as download host
|
# 2024.11.06 - [ranoz] Add ranoz.gg as download host
|
||||||
# 2024.11.05 - [up_ranoz] Add ranoz.gg as upload host
|
# 2024.11.05 - [up_ranoz] Add ranoz.gg as upload host
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue