Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

feat: store local video path in database for generated videos

awsless3784315b7965
diff --git a/application/services/video_generation_service.go b/application/services/video_generation_service.go
index 8d9d427..a007a65 100644
--- a/application/services/video_generation_service.go
+++ b/application/services/video_generation_service.go
@@ -371,10 +371,10 @@ func (s *VideoGenerationService) completeVideoGeneration(videoGenID uint, videoU
}
}
- // 数据库中使用原始URL
+ // 数据库中使用本地URL
updates := map[string]interface{}{
"status": models.VideoStatusCompleted,
- "video_url": videoURL,
+ "video_url": localVideoPath,
}
if duration != nil {
updates["duration"] = *duration