From 7a9cb548ab3520034d8552bb8bb1c1dea44290f9 Mon Sep 17 00:00:00 2001 From: Emilo2 <99644577+Emilo2@users.noreply.github.com> Date: Tue, 12 Dec 2023 02:47:48 +0200 Subject: [PATCH] Merge url's in scene tagger instead of replacing (#4343) --- .../src/components/Tagger/scenes/StashSearchResult.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx b/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx index 5229ff4dd..36a44292b 100755 --- a/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx +++ b/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx @@ -363,15 +363,20 @@ const StashSearchResult: React.FC = ({ ), studio_id: studioID, cover_image: resolveField("cover_image", undefined, imgData), - urls: resolveField("url", stashScene.urls, scene.urls), tag_ids: tagIDs, stash_ids: stashScene.stash_ids ?? [], code: resolveField("code", stashScene.code, scene.code), director: resolveField("director", stashScene.director, scene.director), }; - const includeStashID = !excludedFieldList.includes("stash_ids"); + const includeUrl = !excludedFieldList.includes("url"); + if (includeUrl && scene.urls) { + sceneCreateInput.urls = uniq(stashScene.urls.concat(scene.urls)); + } else { + sceneCreateInput.urls = stashScene.urls; + } + const includeStashID = !excludedFieldList.includes("stash_ids"); if ( includeStashID && currentSource?.stashboxEndpoint &&