Merge url's in scene tagger instead of replacing (#4343)

This commit is contained in:
Emilo2 2023-12-12 02:47:48 +02:00 committed by GitHub
parent 74ddfa47e9
commit 7a9cb548ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -363,15 +363,20 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
),
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 &&