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

Fix countries with batch performer add/update #2326

Closed

Conversation

DampToast
Copy link
Contributor

I had to add a new dependency. I don't know anything about GoLang so hopefully this is the right way. Also the license looks okay but of course double check to see if it works. https://github.com/biter777/countries

This should fix #1567. When doing a batch performer add or update, it converts the 2 character code to the full country name and stores it that way. I also tested this with a performer that had no country in StashDB to ensure it didn't cause issues.

This also fixes another issue I found which was assigning the "Tattoos" data from StashDB to the Twitter field. I figured it would be okay to include with this PR though.

@WithoutPants
Copy link
Collaborator

This is going to collide/be obsoleted by #1922.

@DampToast
Copy link
Contributor Author

DampToast commented Feb 18, 2022

Ok. Do you want me to close this and resubmit just the fix for Tattoos going into the Twitter field?

It's just a one-liner. https://github.com/stashapp/stash/pull/2326/files#diff-84d0612ead36cb427339c97525ef8b6b2cb2effef835bb4dd5da31d3cc1ba075L145

@DampToast
Copy link
Contributor Author

I made a separate pull request for the tattoos -> twitter thing. #2332

Feel free to do whatever with this PR.

@WithoutPants
Copy link
Collaborator

Obsoleted by #1922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Batch Scraped performer Country data from stash-box is only two-lettered
2 participants