mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
add ModuleType Schema
This commit is contained in:
@@ -18,7 +18,7 @@ from app.modules.indexer.spider.tnode import TNodeSpider
|
||||
from app.modules.indexer.spider.torrentleech import TorrentLeech
|
||||
from app.modules.indexer.spider.yema import YemaSpider
|
||||
from app.schemas import SiteUserData
|
||||
from app.schemas.types import MediaType
|
||||
from app.schemas.types import MediaType, ModuleType
|
||||
from app.utils.string import StringUtils
|
||||
|
||||
|
||||
@@ -40,6 +40,13 @@ class IndexerModule(_ModuleBase):
|
||||
def get_name() -> str:
|
||||
return "站点索引"
|
||||
|
||||
@staticmethod
|
||||
def get_type() -> ModuleType:
|
||||
"""
|
||||
获取模块类型
|
||||
"""
|
||||
return ModuleType.Indexer
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user