From 78b7a035d8a263e62207856f1fc120ad0e659c78 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 28 Feb 2022 13:13:13 +1100 Subject: [PATCH] Set performer MD5 if name changed in stash-box tag (#2345) --- pkg/manager/task_stash_box_tag.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/manager/task_stash_box_tag.go b/pkg/manager/task_stash_box_tag.go index eb4c83050..f1722cff6 100644 --- a/pkg/manager/task_stash_box_tag.go +++ b/pkg/manager/task_stash_box_tag.go @@ -135,6 +135,8 @@ func (t *StashBoxPerformerTagTask) stashBoxPerformerTag(ctx context.Context) { if excluded["name"] && performer.Name != nil { value := sql.NullString{String: *performer.Name, Valid: true} partial.Name = &value + checksum := utils.MD5FromString(*performer.Name) + partial.Checksum = &checksum } if performer.Piercings != nil && !excluded["piercings"] { value := getNullString(performer.Piercings)