You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
@@ -18,9 +18,9 @@ manual_download() {
|
|||||||
download() {
|
download() {
|
||||||
PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
|
PATH=/data/adb/magisk:/data/data/com.termux/files/usr/bin:$PATH
|
||||||
if command -v curl >/dev/null 2>&1; then
|
if command -v curl >/dev/null 2>&1; then
|
||||||
timeout 10 curl -Ls "$1"
|
curl --connect-timeout 10 -Ls "$1"
|
||||||
else
|
else
|
||||||
timeout 10 busybox wget --no-check-certificate -qO- "$1"
|
busybox wget -T 10 --no-check-certificate -qO- "$1"
|
||||||
fi
|
fi
|
||||||
PATH="$ORG_PATH"
|
PATH="$ORG_PATH"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ aapt() { "$MODPATH/aapt" "$@"; }
|
|||||||
# curl, has ssl on android, we use it if found
|
# curl, has ssl on android, we use it if found
|
||||||
download() {
|
download() {
|
||||||
if command -v curl >/dev/null 2>&1; then
|
if command -v curl >/dev/null 2>&1; then
|
||||||
timeout 10 curl -Ls "$1"
|
curl --connect-timeout 10 -Ls "$1"
|
||||||
else
|
else
|
||||||
timeout 10 busybox wget --no-check-certificate -qO- "$1"
|
busybox wget -T 10 --no-check-certificate -qO- "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ document.getElementById('canary').addEventListener('click', async () => {
|
|||||||
if (isDownloading) return;
|
if (isDownloading) return;
|
||||||
isDownloading = true;
|
isDownloading = true;
|
||||||
try {
|
try {
|
||||||
showPrompt("prompt_checking_update");
|
showPrompt("prompt_checking_update", true, 10000);
|
||||||
const url = "https://api.allorigins.win/raw?url=" + encodeURIComponent("https://nightly.link/KOWX712/Tricky-Addon-Update-Target-List/workflows/build/main?preview");
|
const url = "https://api.allorigins.win/raw?url=" + encodeURIComponent("https://nightly.link/KOWX712/Tricky-Addon-Update-Target-List/workflows/build/main?preview");
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
const html = await response.text();
|
const html = await response.text();
|
||||||
|
|||||||
Reference in New Issue
Block a user