mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-13 15:09:12 +00:00
fix
This commit is contained in:
@@ -96,9 +96,13 @@ class ConfigCenter(_PluginBase):
|
||||
# 读写app.env
|
||||
env_path = settings.CONFIG_PATH / "app.env"
|
||||
for key, value in conf.items():
|
||||
if not key or value is None:
|
||||
if not key:
|
||||
continue
|
||||
set_key(env_path, key, str(value))
|
||||
if value is None:
|
||||
value = ''
|
||||
else:
|
||||
value = str(value)
|
||||
set_key(env_path, key, value)
|
||||
logger.info("app.env文件写入完成")
|
||||
self.systemmessage.put("配置中心设置已写入app.env文件,插件关闭")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user