🐛 优化插件调用逻辑,减少冗余打印
Some checks are pending
Docker Publish / build-and-push (push) Waiting to run

This commit is contained in:
Cp0204 2024-11-25 02:09:16 +08:00
parent 4e45e37412
commit 26060f0dd7

View File

@ -868,10 +868,13 @@ def do_save(account, tasklist=[]):
task.get("addition", {}), CONFIG_DATA["task_plugins_config"]
)
# 调用插件
if is_new_tree or is_rename:
print(f"🧩 调用插件")
for plugin_name, plugin in plugins.items():
if plugin.is_active and (is_new_tree or is_rename):
task = plugin.run(task, account=account, tree=is_new_tree) or task
task = (
plugin.run(task, account=account, tree=is_new_tree) or task
)
print()