mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-24 15:09:43 +00:00
fix 部分设置无法写入app.env的bug
This commit is contained in:
@@ -17,7 +17,7 @@ class ConfigCenter(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "setting.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.3"
|
||||
plugin_version = "1.4"
|
||||
# 插件作者
|
||||
plugin_author = "jxxghp"
|
||||
# 作者主页
|
||||
@@ -114,7 +114,7 @@ class ConfigCenter(_PluginBase):
|
||||
# 读写app.env
|
||||
env_path = settings.CONFIG_PATH / "app.env"
|
||||
for key, value in conf.items():
|
||||
if not value or not key:
|
||||
if not key:
|
||||
continue
|
||||
set_key(env_path, key, str(value))
|
||||
logger.info("app.env文件写入完成")
|
||||
|
||||
Reference in New Issue
Block a user