mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Performer Active Years is submitted to Stashbox (#3146)
This commit is contained in:
parent
4daf0a14a2
commit
e614ca8d26
1 changed files with 11 additions and 0 deletions
|
|
@ -1027,6 +1027,17 @@ func (c Client) SubmitPerformerDraft(ctx context.Context, performer *models.Perf
|
||||||
aliases := strings.Join(performer.Aliases.List(), ",")
|
aliases := strings.Join(performer.Aliases.List(), ",")
|
||||||
draft.Aliases = &aliases
|
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
|
var urls []string
|
||||||
if len(strings.TrimSpace(performer.Twitter)) > 0 {
|
if len(strings.TrimSpace(performer.Twitter)) > 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue