Compare commits

..

2 Commits

Author SHA1 Message Date
Cp0204
579c35fadc feat(plugins): 新增 飞牛影视刷新v2 插件并调整优先级
Some checks failed
Docker Publish / build-and-push (push) Has been cancelled
2026-01-07 23:22:34 +08:00
Cp0204
72506d6b5f feat(plugins): 支持插件 task_after 方法,并可更新自身配置 2026-01-07 22:20:55 +08:00
3 changed files with 11 additions and 9 deletions

View File

@ -1,10 +1,12 @@
[ [
"alist",
"smartstrm", "smartstrm",
"fnv_refresh_v2",
"alist",
"alist_strm", "alist_strm",
"alist_strm_gen", "alist_strm_gen",
"alist_sync", "alist_sync",
"aria2", "aria2",
"emby", "emby",
"plex" "plex",
"fnv"
] ]

BIN
plugins/fnv_refresh_v2.so Normal file

Binary file not shown.

View File

@ -1182,13 +1182,13 @@ def do_save(account, tasklist=[]):
task = ( task = (
plugin.run(task, account=account, tree=is_new_tree) or task plugin.run(task, account=account, tree=is_new_tree) or task
) )
print() print()
print(f"===============插件收尾===============") print(f"===============插件收尾===============")
for plugin_name, plugin in plugins.items(): for plugin_name, plugin in plugins.items():
if plugin.is_active and hasattr(plugin, "task_after"): if plugin.is_active and hasattr(plugin, "task_after"):
data = plugin.task_after() data = plugin.task_after()
if data.get("config"): if data.get("config"):
CONFIG_DATA["plugins"][plugin_name] = data["config"] CONFIG_DATA["plugins"][plugin_name] = data["config"]
print() print()