feat: external plugin loading, score threshold, expiry cleanup and more improvements
Made-with: Cursor
This commit is contained in:
@@ -37,3 +37,12 @@ registry.register(FpwPremproxyPlugin)
|
||||
registry.register(FpwFreeproxylistsPlugin)
|
||||
registry.register(FpwGatherproxyPlugin)
|
||||
registry.register(FpwCheckerproxyPlugin)
|
||||
|
||||
# 可选:从 config 的 plugins_dir 加载用户插件(根目录下目录,非 app/plugins 包)
|
||||
from pathlib import Path
|
||||
|
||||
from app.core.config import settings as _app_settings
|
||||
from app.core.config_paths import project_root as _project_root
|
||||
|
||||
_ext_dir = _project_root() / _app_settings.plugins_dir
|
||||
registry.load_external_plugins_directory(_ext_dir)
|
||||
|
||||
Reference in New Issue
Block a user