From 42839627e82ece990dbfa7c2cf2108f2e4976a07 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 10 Jun 2025 22:12:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BA=86=20GitHub=20=E5=8A=A0=E9=80=9F=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=90=8E=EF=BC=8C=E6=8F=92=E4=BB=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/star/updator.py | 4 ---- astrbot/core/zip_updator.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/astrbot/core/star/updator.py b/astrbot/core/star/updator.py index 14cb5331a..9896115bb 100644 --- a/astrbot/core/star/updator.py +++ b/astrbot/core/star/updator.py @@ -32,10 +32,6 @@ class PluginUpdator(RepoZipUpdator): if not repo_url: raise Exception(f"插件 {plugin.name} 没有指定仓库地址。") - if proxy: - proxy = proxy.removesuffix("/") - repo_url = f"{proxy}/{repo_url}" - plugin_path = os.path.join(self.plugin_store_path, plugin.root_dir_name) logger.info(f"正在更新插件,路径: {plugin_path},仓库地址: {repo_url}") diff --git a/astrbot/core/zip_updator.py b/astrbot/core/zip_updator.py index 2d2b7b834..a09342795 100644 --- a/astrbot/core/zip_updator.py +++ b/astrbot/core/zip_updator.py @@ -148,6 +148,7 @@ class RepoZipUpdator: release_url = releases[0]["zipball_url"] if proxy: + proxy = proxy.rstrip("/") release_url = f"{proxy}/{release_url}" logger.info( f"检查到设置了镜像站,将使用镜像站下载 {author}/{repo} 仓库源码: {release_url}"