Skip to content

Commit

Permalink
更改下载地址 (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
power721 authored Oct 1, 2024
1 parent 6ce92a6 commit 1116795
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ init() {
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 30 -t 2 http://docker.xiaoya.pro/update/tvbox.zip -O tvbox.zip || \
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 30 -t 2 http://104.21.17.247/update/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 https://github.com/xiaoyaliu00/data/raw/main/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 http://data.har01d.cn/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 http://104.160.46.225/tvbox.zip -O tvbox.zip || \
cp /tvbox.zip ./

unzip -q -o tvbox.zip
Expand Down Expand Up @@ -108,12 +108,12 @@ cd /tmp/

wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 10 -t 2 -q http://docker.xiaoya.pro/version.txt -O version.txt || \
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 10 -t 2 -q http://104.21.17.247/version.txt -O version.txt || \
wget -T 10 -t 2 http://data.har01d.cn/version.txt -O version.txt
wget -T 10 -t 2 http://104.160.46.225/version.txt -O version.txt

wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 30 -t 2 http://docker.xiaoya.pro/update/update.zip -O update.zip || \
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 30 -t 2 http://104.21.17.247/update/update.zip -O update.zip || \
wget -T 30 -t 2 https://github.com/xiaoyaliu00/data/raw/main/update.zip -O update.zip || \
wget -T 30 -t 2 http://data.har01d.cn/update.zip -O update.zip
wget -T 30 -t 2 http://104.160.46.225/update.zip -O update.zip

if [ ! -f update.zip ]; then
echo "Failed to download update database file, the database upgrade process has aborted"
Expand Down Expand Up @@ -160,7 +160,7 @@ else
elif [ "$remote" = "$latest" ]; then
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 30 -t 2 http://docker.xiaoya.pro/update/index.zip -O index.zip || \
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 40 -t 2 http://104.21.17.247/update/index.zip -O index.zip || \
wget -T 40 -t 2 http://data.har01d.cn/index.zip -O index.zip
wget -T 40 -t 2 http://104.160.46.225/index.zip -O index.zip

if [ ! -f index.zip ]; then
echo "Failed to download index compressed file, the index file upgrade process has aborted"
Expand Down
4 changes: 2 additions & 2 deletions scripts/downloadPg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
cp /pg.zip /data/
fi

REMOTE=$(curl -s https://gitlab.com/power0721/pg/-/raw/main/pg.version)
REMOTE=$(curl -s http://104.160.46.225/pg.version)

echo "local PG: ${LOCAL}, remote PG: ${REMOTE}"
if [ "$LOCAL" = "${REMOTE}" ]; then
Expand All @@ -19,7 +19,7 @@ if [ "$LOCAL" = "${REMOTE}" ]; then
fi

echo "download ${REMOTE}" && \
wget https://gitlab.com/power0721/pg/-/raw/main/pg.zip -O /data/pg.zip && \
wget http://104.160.46.225/pg.zip -O /data/pg.zip && \
echo "unzip file" && \
rm -rf /www/pg/* && unzip -q -o /data/pg.zip -d /www/pg && \
echo "save version" && \
Expand Down
4 changes: 2 additions & 2 deletions scripts/downloadZx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
cp /zx.zip /data/
fi

REMOTE=$(curl -s https://gitlab.com/power0721/pg/-/raw/main/zx.version)
REMOTE=$(curl -s http://104.160.46.225/zx.version)

echo "local zx: ${LOCAL}, remote zx: ${REMOTE}"
if [ "$LOCAL" = "${REMOTE}" ]; then
Expand All @@ -19,7 +19,7 @@ if [ "$LOCAL" = "${REMOTE}" ]; then
fi

echo "download ${REMOTE}" && \
wget https://gitlab.com/power0721/pg/-/raw/main/heart.zip -O /data/zx.zip && \
wget http://104.160.46.225/zx.zip -O /data/zx.zip && \
echo "unzip file" && \
rm -rf /www/zx/* && unzip -q -o /data/zx.zip -d /www/zx && \
echo "save version" && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if [ $# -gt 0 ]; then
remote=$1
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 30 -t 2 http://docker.xiaoya.pro/update/index.zip || \
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 40 -t 2 http://104.21.17.247/update/index.zip -O index.zip || \
wget -T 40 -t 2 http://data.har01d.cn/index.zip -O index.zip
wget -T 40 -t 2 http://104.160.46.225/index.zip -O index.zip
if [ ! -f index.zip ]; then
echo "Failed to download index compressed file, the index file upgrade process has aborted"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ init() {
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" -T 30 -t 2 http://docker.xiaoya.pro/update/tvbox.zip -O tvbox.zip ||
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppelWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" --header="Host:docker.xiaoya.pro" -T 30 -t 2 http://104.21.17.247/update/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 https://github.com/xiaoyaliu00/data/raw/main/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 http://data.har01d.cn/tvbox.zip -O tvbox.zip || \
wget -T 30 -t 2 http://104.160.46.225/tvbox.zip -O tvbox.zip || \
cp /tvbox.zip ./

unzip -q -o tvbox.zip
Expand Down
2 changes: 1 addition & 1 deletion scripts/movie.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ "$LOCAL" = "$1" ]; then
fi

echo "download diff.zip" && \
wget http://data.har01d.cn/diff.zip -O diff.zip && \
wget http://104.160.46.225/diff.zip -O diff.zip && \
unzip -q -o diff.zip -d /data/atv/ && \
cat /data/atv/movie_version && \
rm -f /tmp/diff.zip
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public String getRemoteVersion(Versions versions) {
}

try {
String remote = restTemplate.getForObject("http://data.har01d.cn/movie_version", String.class).trim();
String remote = restTemplate.getForObject("http://104.160.46.225/movie_version", String.class).trim();
versions.setMovie(remote);
String local = settingRepository.findById(MOVIE_VERSION).map(Setting::getValue).orElse("0.0").trim();
String cached = getCachedVersion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private String getVersion() {
try {
remote = restTemplate.getForObject("http://docker.xiaoya.pro/version.txt", String.class);
} catch (ResourceAccessException e) {
remote = restTemplate.getForObject("http://data.har01d.cn/version.txt", String.class);
remote = restTemplate.getForObject("http://104.160.46.225/version.txt", String.class);
}
return Utils.trim(remote);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public PgTokenController(SubscriptionService subscriptionService,

@GetMapping("/version")
public Object version() throws IOException {
String remote = restTemplate.getForObject("https://gitlab.com/power0721/pg/-/raw/main/pg.version", String.class);
String remote = restTemplate.getForObject("http://104.160.46.225/pg.version", String.class);
String local = "";
Path path = Path.of("/data/pg_version.txt");
if (Files.exists(path)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ZxConfigController(SubscriptionService subscriptionService,

@GetMapping("/version")
public Object version() throws IOException {
String remote = restTemplate.getForObject("https://gitlab.com/power0721/pg/-/raw/main/zx.version", String.class);
String remote = restTemplate.getForObject("http://104.160.46.225/zx.version", String.class);
String local = "";
Path path = Path.of("/data/zx_version.txt");
if (Files.exists(path)) {
Expand Down

0 comments on commit 1116795

Please sign in to comment.