fix 插件的开关命名问题
This commit is contained in:
parent
ce62355197
commit
e4da7989a4
@ -110,7 +110,7 @@ class CloudflareSpeedTest(_PluginBase):
|
|||||||
|
|
||||||
# 获取自定义Hosts插件,若无设置则停止
|
# 获取自定义Hosts插件,若无设置则停止
|
||||||
customHosts = self.get_config("CustomHosts")
|
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"):
|
if self._cf_ip and not customHosts or not customHosts.get("hosts"):
|
||||||
logger.error(f"Cloudflare CDN优选依赖于自定义Hosts,请先维护hosts")
|
logger.error(f"Cloudflare CDN优选依赖于自定义Hosts,请先维护hosts")
|
||||||
return
|
return
|
||||||
|
@ -349,7 +349,7 @@ class IYUUAutoSeed(_PluginBase):
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
], {
|
], {
|
||||||
"enable": False,
|
"enabled": False,
|
||||||
"onlyonce": False,
|
"onlyonce": False,
|
||||||
"notify": False,
|
"notify": False,
|
||||||
"clearcache": False,
|
"clearcache": False,
|
||||||
@ -365,7 +365,7 @@ class IYUUAutoSeed(_PluginBase):
|
|||||||
|
|
||||||
def __update_config(self):
|
def __update_config(self):
|
||||||
self.update_config({
|
self.update_config({
|
||||||
"enable": self._enabled,
|
"enabled": self._enabled,
|
||||||
"onlyonce": self._onlyonce,
|
"onlyonce": self._onlyonce,
|
||||||
"clearcache": self._clearcache,
|
"clearcache": self._clearcache,
|
||||||
"cron": self._cron,
|
"cron": self._cron,
|
||||||
|
@ -402,7 +402,7 @@ class MediaSyncDel(_PluginBase):
|
|||||||
if not item_isvirtual:
|
if not item_isvirtual:
|
||||||
logger.error("item_isvirtual参数未配置,为防止误删除,暂停插件运行")
|
logger.error("item_isvirtual参数未配置,为防止误删除,暂停插件运行")
|
||||||
self.update_config({
|
self.update_config({
|
||||||
"enable": False,
|
"enabled": False,
|
||||||
"del_source": self._del_source,
|
"del_source": self._del_source,
|
||||||
"exclude_path": self._exclude_path,
|
"exclude_path": self._exclude_path,
|
||||||
"notify": self._notify,
|
"notify": self._notify,
|
||||||
|
@ -120,7 +120,7 @@ class TorrentTransfer(_PluginBase):
|
|||||||
# 关闭一次性开关
|
# 关闭一次性开关
|
||||||
self._onlyonce = False
|
self._onlyonce = False
|
||||||
self.update_config({
|
self.update_config({
|
||||||
"enable": self._enabled,
|
"enabled": self._enabled,
|
||||||
"onlyonce": self._onlyonce,
|
"onlyonce": self._onlyonce,
|
||||||
"cron": self._cron,
|
"cron": self._cron,
|
||||||
"notify": self._notify,
|
"notify": self._notify,
|
||||||
@ -415,7 +415,7 @@ class TorrentTransfer(_PluginBase):
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
], {
|
], {
|
||||||
"enable": False,
|
"enabled": False,
|
||||||
"notify": False,
|
"notify": False,
|
||||||
"onlyonce": False,
|
"onlyonce": False,
|
||||||
"cron": "",
|
"cron": "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user