mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-31 13:11:40 +08:00
31 lines
600 B
Python
31 lines
600 B
Python
from app.actions import BaseAction
|
|
from app.schemas import ActionParams, ActionContext
|
|
|
|
|
|
class FetchMediasParams(ActionParams):
|
|
"""
|
|
获取媒体数据参数
|
|
"""
|
|
pass
|
|
|
|
|
|
class FetchMediasAction(BaseAction):
|
|
"""
|
|
获取媒体数据
|
|
"""
|
|
|
|
@property
|
|
def name(self) -> str:
|
|
return "获取媒体数据"
|
|
|
|
@property
|
|
def description(self) -> str:
|
|
return "获取媒体数据"
|
|
|
|
@property
|
|
def success(self) -> bool:
|
|
return True
|
|
|
|
async def execute(self, params: FetchMediasParams, context: ActionContext) -> ActionContext:
|
|
pass
|