v2024.11.10

This commit is contained in:
kittykat 2024-11-09 19:07:50 +00:00
parent 1ad5310b7d
commit 54b42fd63c
5 changed files with 197 additions and 10 deletions

View file

@ -14,7 +14,7 @@
#! * Note: Must begin with a letter a-z (functions beginning with numbers are no bueno)
#! HostDomainRegex: The regex used to verify matching urls
HostCode='torp'
HostNick='torup'
HostNick='TorUp'
HostFuncPrefix='torp'
HostUrls='ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd.onion'
HostDomainRegex='^(http|https)://ktgzpea2b76u7fgemiibp4a76onyybo4fw5gbsagtm6jrjzmgivppyyd\.onion/'
@ -171,7 +171,7 @@ torp_FetchFileInfo() {
#! ----------- (3) Fetch File / Download File Function --------------- #
#!
torp_GetFile() {
echo -e "${GREEN}# Downloading…"
echo -e "${GREEN}# Downloading…${NC} ${BLUE}(No resume)${NC}"
echo -e "${YELLOW}| File path:${NC}\t./.inflight/${filename}\n"
fileCnt=$1
retryCnt=$2
@ -191,12 +191,12 @@ torp_GetFile() {
--speed-limit $DownloadSpeedMin --speed-time $DownloadTimeoutInterval \
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
-H "Referer: $fixed_url" \
"$download_url" --continue-at - --output "$file_path"
"$download_url" --output "$file_path"
else
tor_curl_request --insecure -L -G --no-alpn \
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
-H "Referer: $fixed_url" \
"$download_url" --continue-at - --output "$file_path"
"$download_url" --output "$file_path"
fi
else
if [ "${RateMonitorEnabled}" == "true" ]; then
@ -214,7 +214,7 @@ torp_GetFile() {
-H "Sec-Fetch-Site: same-origin" \
-H "Sec-Fetch-User: ?1" \
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
"$download_url" --continue-at - --output "$file_path"
"$download_url" --output "$file_path"
else
tor_curl_request --insecure -L -G --no-alpn \
-H "User-Agent: $RandomUA" \
@ -229,7 +229,7 @@ torp_GetFile() {
-H "Sec-Fetch-Site: same-origin" \
-H "Sec-Fetch-User: ?1" \
-b "${torp_cookie_jar}" -c "${torp_cookie_jar}" \
"$download_url" --continue-at - --output "$file_path"
"$download_url" --output "$file_path"
fi
fi
received_file_size=0