Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add performer aliases to stash-box tagging/scraping #2091

Merged
merged 2 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/scraper/stashbox/stash_box.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@ func performerFragmentToScrapedScenePerformer(p graphql.PerformerFragment) *mode
sp.FakeTits = enumToStringPtr(p.BreastType, true)
}

if len(p.Aliases) > 0 {
alias := strings.Join(p.Aliases, ", ")
sp.Aliases = &alias
}

return sp
}

Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Changelog/versions/v0120.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Added plugin hook for Tag merge operation. ([#2010](https://github.com/stashapp/stash/pull/2010))

### 🐛 Bug fixes
* Include performer aliases when scraping from stash-box. ([#2091](https://github.com/stashapp/stash/pull/2091/files))
* Remove empty folder-based galleries during clean. ([#1954](https://github.com/stashapp/stash/pull/1954))
* Select first scene result in scene tagger where possible. ([#2051](https://github.com/stashapp/stash/pull/2051))
* Reject dates with invalid format. ([#2052](https://github.com/stashapp/stash/pull/2052))
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/components/Tagger/PerformerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const PerformerModal: React.FC<IPerformerModalProps> = ({
<div className="row">
<div className="col-7">
{renderField("name", performer.name)}
{renderField("aliases", performer.aliases)}
{renderField(
"gender",
performer.gender ? genderToString(performer.gender) : ""
Expand Down