refactor:Module加入执行优先顺序

This commit is contained in:
jxxghp
2024-10-19 19:31:25 +08:00
parent de17bc5645
commit 363f12ed5a
22 changed files with 150 additions and 0 deletions

View File

@@ -58,6 +58,13 @@ class DoubanModule(_ModuleBase):
"""
return ModuleType.MediaRecognize
@staticmethod
def get_priority() -> int:
"""
获取模块优先级,数字越小优先级越高,只有同一接口下优先级才生效
"""
return 2
def recognize_media(self, meta: MetaBase = None,
mtype: MediaType = None,
doubanid: str = None,