From f5e3fe77b72286521fa9d42fde48912940cdc47f Mon Sep 17 00:00:00 2001 From: bayured <155395888+bayured@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:23:29 +0000 Subject: [PATCH] Update FieldStrategyOverwrite to work when scene has no existing URL (#4412) --- internal/identify/identify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/identify/identify.go b/internal/identify/identify.go index 204d03129..144a58a48 100644 --- a/internal/identify/identify.go +++ b/internal/identify/identify.go @@ -392,7 +392,7 @@ func getScenePartial(scene *models.Scene, scraped *scraper.ScrapedScene, fieldOp switch getFieldStrategy(fieldOptions["url"]) { case FieldStrategyOverwrite: // only overwrite if not equal - if len(sliceutil.Exclude(scene.URLs.List(), scraped.URLs)) != 0 { + if len(sliceutil.Exclude(scraped.URLs, scene.URLs.List())) != 0 { partial.URLs = &models.UpdateStrings{ Values: scraped.URLs, Mode: models.RelationshipUpdateModeSet,