This commit is contained in:
jxxghp
2024-06-21 08:27:37 +08:00
parent 0133c6e60c
commit 8a98c65026
2 changed files with 267 additions and 248 deletions

View File

@ -46,7 +46,8 @@ def query_name(path: str, filetype: str,
@router.post("/manual", summary="手动转移", response_model=schemas.Response)
def manual_transfer(path: str = None,
def manual_transfer(storage: str = "local",
path: str = None,
logid: int = None,
target: str = None,
tmdbid: int = None,
@ -64,6 +65,7 @@ def manual_transfer(path: str = None,
_: schemas.TokenPayload = Depends(verify_token)) -> Any:
"""
手动转移,文件或历史记录,支持自定义剧集识别格式
:param storage: 存储类型local/aliyun/u115
:param path: 转移路径或文件
:param logid: 转移历史记录ID
:param target: 目标路径
@ -119,6 +121,7 @@ def manual_transfer(path: str = None,
)
# 开始转移
state, errormsg = transfer.manual_transfer(
storage=storage,
in_path=in_path,
target=target,
tmdbid=tmdbid,