mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Include missing fields in performer batch tag (#3718)
This commit is contained in:
@@ -120,12 +120,16 @@ func (t *StashBoxPerformerTagTask) stashBoxPerformerTag(ctx context.Context) {
|
||||
}
|
||||
newPerformer := models.Performer{
|
||||
Aliases: models.NewRelatedStrings(aliases),
|
||||
Disambiguation: getString(performer.Disambiguation),
|
||||
Details: getString(performer.Details),
|
||||
Birthdate: getDate(performer.Birthdate),
|
||||
DeathDate: getDate(performer.DeathDate),
|
||||
CareerLength: getString(performer.CareerLength),
|
||||
Country: getString(performer.Country),
|
||||
CreatedAt: currentTime,
|
||||
Ethnicity: getString(performer.Ethnicity),
|
||||
EyeColor: getString(performer.EyeColor),
|
||||
HairColor: getString(performer.HairColor),
|
||||
FakeTits: getString(performer.FakeTits),
|
||||
Gender: models.GenderEnum(getString(performer.Gender)),
|
||||
Height: getIntPtr(performer.Height),
|
||||
@@ -192,6 +196,10 @@ func (t *StashBoxPerformerTagTask) getPartial(performer *models.ScrapedPerformer
|
||||
value := getDate(performer.Birthdate)
|
||||
partial.Birthdate = models.NewOptionalDate(*value)
|
||||
}
|
||||
if performer.DeathDate != nil && *performer.DeathDate != "" && !excluded["deathdate"] {
|
||||
value := getDate(performer.DeathDate)
|
||||
partial.Birthdate = models.NewOptionalDate(*value)
|
||||
}
|
||||
if performer.CareerLength != nil && !excluded["career_length"] {
|
||||
partial.CareerLength = models.NewOptionalString(*performer.CareerLength)
|
||||
}
|
||||
@@ -204,6 +212,9 @@ func (t *StashBoxPerformerTagTask) getPartial(performer *models.ScrapedPerformer
|
||||
if performer.EyeColor != nil && !excluded["eye_color"] {
|
||||
partial.EyeColor = models.NewOptionalString(*performer.EyeColor)
|
||||
}
|
||||
if performer.HairColor != nil && !excluded["hair_color"] {
|
||||
partial.HairColor = models.NewOptionalString(*performer.HairColor)
|
||||
}
|
||||
if performer.FakeTits != nil && !excluded["fake_tits"] {
|
||||
partial.FakeTits = models.NewOptionalString(*performer.FakeTits)
|
||||
}
|
||||
@@ -231,6 +242,9 @@ func (t *StashBoxPerformerTagTask) getPartial(performer *models.ScrapedPerformer
|
||||
if excluded["name"] && performer.Name != nil {
|
||||
partial.Name = models.NewOptionalString(*performer.Name)
|
||||
}
|
||||
if performer.Disambiguation != nil && !excluded["disambiguation"] {
|
||||
partial.Disambiguation = models.NewOptionalString(*performer.Disambiguation)
|
||||
}
|
||||
if performer.Piercings != nil && !excluded["piercings"] {
|
||||
partial.Piercings = models.NewOptionalString(*performer.Piercings)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user