Set performer MD5 if name changed in stash-box tag (#2345)

This commit is contained in:
WithoutPants 2022-02-28 13:13:13 +11:00 committed by GitHub
parent 34a7e67b29
commit 78b7a035d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)