mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-16 13:55:28 +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.log import logger
|
||||||
from app.modules import _ModuleBase, _MediaServerBase
|
from app.modules import _ModuleBase, _MediaServerBase
|
||||||
from app.modules.emby.emby import Emby
|
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]):
|
class EmbyModule(_ModuleBase, _MediaServerBase[Emby]):
|
||||||
@@ -22,8 +22,11 @@ class EmbyModule(_ModuleBase, _MediaServerBase[Emby]):
|
|||||||
return "Emby"
|
return "Emby"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_type() -> str:
|
def get_type() -> ModuleType:
|
||||||
return "mediaserver"
|
"""
|
||||||
|
获取模块类型
|
||||||
|
"""
|
||||||
|
return ModuleType.MediaServer
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user