From f51efa7be89bc2bcb261b59595fc74ac26926a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AB=A3=E8=AF=86?= Date: Tue, 27 Feb 2024 10:46:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8DMoviePilotUpdateNotify?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=9C=AA=E6=B7=BB=E5=8A=A0github=5Ftoken?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4,=E5=9B=A0=E9=99=90=E6=B5=81?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E8=AF=B7=E6=B1=82=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- plugins/moviepilotupdatenotify/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7f9285e..cfc35bc 100644 --- a/package.json +++ b/package.json @@ -250,7 +250,7 @@ "MoviePilotUpdateNotify": { "name": "MoviePilot更新推送", "description": "MoviePilot推送release更新通知、自动重启。", - "version": "1.1", + "version": "1.2", "icon": "Moviepilot_A.png", "author": "thsrite", "level": 1 diff --git a/plugins/moviepilotupdatenotify/__init__.py b/plugins/moviepilotupdatenotify/__init__.py index 46d9e5b..0fb7f6a 100644 --- a/plugins/moviepilotupdatenotify/__init__.py +++ b/plugins/moviepilotupdatenotify/__init__.py @@ -97,7 +97,7 @@ class MoviePilotUpdateNotify(_PluginBase): """ 获取最新版本 """ - version_res = RequestUtils(proxies=settings.PROXY).get_res( + version_res = RequestUtils(proxies=settings.PROXY, headers=settings.GITHUB_HEADERS).get_res( "https://api.github.com/repos/jxxghp/MoviePilot/releases/latest") if version_res: ver_json = version_res.json()