From fdaa573c112a6c61ebd7150a9749281e253df747 Mon Sep 17 00:00:00 2001 From: Seefs <40468931+seefs001@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:38:47 +0800 Subject: [PATCH] Revert "fix: video content api Priority use url field" --- controller/video_proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/video_proxy.go b/controller/video_proxy.go index 4815394a..f102baae 100644 --- a/controller/video_proxy.go +++ b/controller/video_proxy.go @@ -12,7 +12,6 @@ import ( "github.com/QuantumNous/new-api/logger" "github.com/QuantumNous/new-api/model" "github.com/QuantumNous/new-api/service" - "github.com/samber/lo" "github.com/gin-gonic/gin" ) @@ -135,7 +134,8 @@ func VideoProxy(c *gin.Context) { videoURL = fmt.Sprintf("%s/v1/videos/%s/content", baseURL, task.TaskID) req.Header.Set("Authorization", "Bearer "+channel.Key) default: - videoURL = lo.Ternary(task.Url != "", task.Url, task.FailReason) + // Video URL is directly in task.FailReason + videoURL = task.FailReason } req.URL, err = url.Parse(videoURL)