mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix actions
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
from app.actions import BaseAction
|
||||
from app.schemas import ActionParams, ActionContext
|
||||
|
||||
|
||||
class TransferFileParams(ActionParams):
|
||||
"""
|
||||
整理文件参数
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class TransferFileAction(BaseAction):
|
||||
"""
|
||||
整理文件
|
||||
"""
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return "整理文件"
|
||||
|
||||
@property
|
||||
def description(self) -> str:
|
||||
return "整理和转移文件"
|
||||
|
||||
@property
|
||||
def done(self) -> bool:
|
||||
return True
|
||||
|
||||
@property
|
||||
def success(self) -> bool:
|
||||
return True
|
||||
|
||||
async def execute(self, params: TransferFileParams, context: ActionContext) -> ActionContext:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user