From e4da7989a449ece728b5e22646076f7dd4b50fcc Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 15 Aug 2023 17:49:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8F=92=E4=BB=B6=E7=9A=84=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E5=91=BD=E5=90=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/cloudflarespeedtest/__init__.py | 2 +- app/plugins/iyuuautoseed/__init__.py | 4 ++-- app/plugins/mediasyncdel/__init__.py | 2 +- app/plugins/torrenttransfer/__init__.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/plugins/cloudflarespeedtest/__init__.py b/app/plugins/cloudflarespeedtest/__init__.py index cdfa8395..410b50f9 100644 --- a/app/plugins/cloudflarespeedtest/__init__.py +++ b/app/plugins/cloudflarespeedtest/__init__.py @@ -110,7 +110,7 @@ class CloudflareSpeedTest(_PluginBase): # 获取自定义Hosts插件,若无设置则停止 customHosts = self.get_config("CustomHosts") - self._customhosts = customHosts and customHosts.get("enable") + self._customhosts = customHosts and customHosts.get("enabled") if self._cf_ip and not customHosts or not customHosts.get("hosts"): logger.error(f"Cloudflare CDN优选依赖于自定义Hosts,请先维护hosts") return diff --git a/app/plugins/iyuuautoseed/__init__.py b/app/plugins/iyuuautoseed/__init__.py index b5a4483d..920a7178 100644 --- a/app/plugins/iyuuautoseed/__init__.py +++ b/app/plugins/iyuuautoseed/__init__.py @@ -349,7 +349,7 @@ class IYUUAutoSeed(_PluginBase): ] } ], { - "enable": False, + "enabled": False, "onlyonce": False, "notify": False, "clearcache": False, @@ -365,7 +365,7 @@ class IYUUAutoSeed(_PluginBase): def __update_config(self): self.update_config({ - "enable": self._enabled, + "enabled": self._enabled, "onlyonce": self._onlyonce, "clearcache": self._clearcache, "cron": self._cron, diff --git a/app/plugins/mediasyncdel/__init__.py b/app/plugins/mediasyncdel/__init__.py index 5e3c2ab5..56b43c6f 100644 --- a/app/plugins/mediasyncdel/__init__.py +++ b/app/plugins/mediasyncdel/__init__.py @@ -402,7 +402,7 @@ class MediaSyncDel(_PluginBase): if not item_isvirtual: logger.error("item_isvirtual参数未配置,为防止误删除,暂停插件运行") self.update_config({ - "enable": False, + "enabled": False, "del_source": self._del_source, "exclude_path": self._exclude_path, "notify": self._notify, diff --git a/app/plugins/torrenttransfer/__init__.py b/app/plugins/torrenttransfer/__init__.py index 61df6015..79b96c7a 100644 --- a/app/plugins/torrenttransfer/__init__.py +++ b/app/plugins/torrenttransfer/__init__.py @@ -120,7 +120,7 @@ class TorrentTransfer(_PluginBase): # 关闭一次性开关 self._onlyonce = False self.update_config({ - "enable": self._enabled, + "enabled": self._enabled, "onlyonce": self._onlyonce, "cron": self._cron, "notify": self._notify, @@ -415,7 +415,7 @@ class TorrentTransfer(_PluginBase): ] } ], { - "enable": False, + "enabled": False, "notify": False, "onlyonce": False, "cron": "",