mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Performer Active Years is submitted to Stashbox (#3146)
This commit is contained in:
@@ -1027,6 +1027,17 @@ func (c Client) SubmitPerformerDraft(ctx context.Context, performer *models.Perf
|
||||
aliases := strings.Join(performer.Aliases.List(), ",")
|
||||
draft.Aliases = &aliases
|
||||
}
|
||||
if performer.CareerLength != "" {
|
||||
var career = strings.Split(performer.CareerLength, "-")
|
||||
if i, err := strconv.Atoi(strings.TrimSpace(career[0])); err == nil {
|
||||
draft.CareerStartYear = &i
|
||||
}
|
||||
if len(career) == 2 {
|
||||
if y, err := strconv.Atoi(strings.TrimSpace(career[1])); err == nil {
|
||||
draft.CareerEndYear = &y
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var urls []string
|
||||
if len(strings.TrimSpace(performer.Twitter)) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user