From 6cbec5bbffc814ad0ed55083940fd14c8c5f4928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 25 Dec 2024 08:38:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervisor.conf | 3 ++- xiaomusic/utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/supervisor.conf b/supervisor.conf index 1879464..3899821 100644 --- a/supervisor.conf +++ b/supervisor.conf @@ -17,7 +17,8 @@ command=/app/.venv/bin/python3 /app/xiaomusic.py directory=/app autostart=true autorestart=true -startretries=0 +startretries=99999 +startsecs=60 stderr_logfile=/app/xiaomusic.log.txt stdout_logfile=/app/xiaomusic.log.txt diff --git a/xiaomusic/utils.py b/xiaomusic/utils.py index 6d0a06a..2bb997a 100644 --- a/xiaomusic/utils.py +++ b/xiaomusic/utils.py @@ -1060,7 +1060,7 @@ async def update_version(version: str, lite: bool = True): log.warning(f"update_version failed: {arch}") return arch # https://github.com/hanxi/xiaomusic/releases/download/main/app-amd64-lite.tar.gz - url = f"https://github.hanxi.cc/proxy/hanxi/xiaomusic/releases/download/{version}/app-{arch}{lite_tag}.tar.gz" + url = f"https://gproxy.hanxi.cc/proxy/hanxi/xiaomusic/releases/download/{version}/app-{arch}{lite_tag}.tar.gz" target_directory = "/app" return await download_and_extract(url, target_directory)