This commit is contained in:
2026-08-06 17:07:33 +08:00
parent 820f601b32
commit 166a020bed
2 changed files with 4 additions and 2 deletions
@@ -117,6 +117,7 @@ async def prepare_api_upscale_task(
source_width: int = 0,
source_height: int = 0,
source_duration: float = 0.0,
source_file_size_bytes: int = 0
) -> "VideoUpscaleTask | None":
"""为 API 任务创建超分子任务。
@@ -162,7 +163,7 @@ async def prepare_api_upscale_task(
source_local_path=api_task.local_path or source_local_path, # 优先使用已下载的本地文件
source_remote_url=api_task.remote_result_url, # 火山 MediaKit 需要远程 URL
input_source_type="provider_remote",
source_file_size_bytes=0,
source_file_size_bytes=source_file_size_bytes,
source_width=source_width,
source_height=source_height,
source_duration_seconds=source_duration,