mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix plugin load
This commit is contained in:
@@ -268,9 +268,6 @@ class PluginManager(metaclass=Singleton):
|
|||||||
if name in _loaded_modules:
|
if name in _loaded_modules:
|
||||||
continue
|
continue
|
||||||
if check_module_func(obj):
|
if check_module_func(obj):
|
||||||
# 如果指定了pid,需要确保类名匹配
|
|
||||||
if pid and name != pid:
|
|
||||||
continue
|
|
||||||
_loaded_modules.add(name)
|
_loaded_modules.add(name)
|
||||||
plugins.append(obj)
|
plugins.append(obj)
|
||||||
logger.debug(f"找到符合条件的插件类:{name}")
|
logger.debug(f"找到符合条件的插件类:{name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user