mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 12:08:09 +08:00
Merge pull request #2856 from InfinityPacer/feature/module
This commit is contained in:
@@ -5,7 +5,7 @@ from app.core.context import MediaInfo
|
||||
from app.log import logger
|
||||
from app.modules import _ModuleBase, _MediaServerBase
|
||||
from app.modules.emby.emby import Emby
|
||||
from app.schemas.types import MediaType
|
||||
from app.schemas.types import MediaType, ModuleType
|
||||
|
||||
|
||||
class EmbyModule(_ModuleBase, _MediaServerBase[Emby]):
|
||||
@@ -22,8 +22,11 @@ class EmbyModule(_ModuleBase, _MediaServerBase[Emby]):
|
||||
return "Emby"
|
||||
|
||||
@staticmethod
|
||||
def get_type() -> str:
|
||||
return "mediaserver"
|
||||
def get_type() -> ModuleType:
|
||||
"""
|
||||
获取模块类型
|
||||
"""
|
||||
return ModuleType.MediaServer
|
||||
|
||||
def stop(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user