From 96d2b36a08f9cd2a8631c718141d243d5e8be82a Mon Sep 17 00:00:00 2001 From: smith113-p <205463041+smith113-p@users.noreply.github.com> Date: Mon, 2 Jun 2025 20:05:43 -0400 Subject: [PATCH] Submit all scene URLs to Stashbox (#5894) --- pkg/stashbox/scene.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/stashbox/scene.go b/pkg/stashbox/scene.go index 65835fee7..1dc885302 100644 --- a/pkg/stashbox/scene.go +++ b/pkg/stashbox/scene.go @@ -6,7 +6,6 @@ import ( "errors" "io" "net/http" - "strings" "github.com/stashapp/stash/pkg/logger" "github.com/stashapp/stash/pkg/models" @@ -288,11 +287,11 @@ func newSceneDraftInput(d SceneDraft, endpoint string) graphql.SceneDraftInput { if scene.Director != "" { draft.Director = &scene.Director } - // TODO - draft does not accept multiple URLs. Use single URL for now. - if len(scene.URLs.List()) > 0 { - url := strings.TrimSpace(scene.URLs.List()[0]) - draft.URL = &url + draft.Urls = make([]string, len(scene.URLs.List())) + for i, v := range scene.URLs.List() { + draft.Urls[i] = v } + if scene.Date != nil { v := scene.Date.String() draft.Date = &v