mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-03 00:31:33 +08:00
refactor:Module加入执行优先顺序
This commit is contained in:
@@ -42,6 +42,14 @@ class _ModuleBase(metaclass=ABCMeta):
|
||||
获取模块类型
|
||||
"""
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def get_priority() -> int:
|
||||
"""
|
||||
获取模块优先级,数字越小优先级越高,只有同一接口下优先级才生效
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def stop(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user