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
@@ -527,7 +527,7 @@ async def _download_generation_result(self, task_id: str) -> dict[str, Any]:
try:
abs_path = os.path.abspath(dest_path)
if os.path.exists(abs_path):
task.source_file_size_bytes = os.path.getsize(abs_path)
source_file_size_bytes = os.path.getsize(abs_path)
# 使用 probe_video 探测实际视频尺寸和时长
from app.services.video_upscale.media_service import probe_video
source_info = await probe_video(abs_path)
@@ -549,6 +549,7 @@ async def _download_generation_result(self, task_id: str) -> dict[str, Any]:
source_width=source_width,
source_height=source_height,
source_duration=source_duration,
source_file_size_bytes=source_file_size_bytes
)
# 如果已存在超分任务(重复调用),检查超分状态