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

Use iso-3166-2-codes if iso-3166-1-codes is not available #377

Merged

Conversation

rdswift
Copy link
Contributor

@rdswift rdswift commented May 11, 2024

In reviewing the discussion at https://community.metabrainz.org/t/possibility-to-tag-by-artist-area-artist-country-of-origin/596808/19 it was discovered that sometimes the country code was returned as iso-3166-2-codes rather than iso-3166-1-codes, and these were not being processed by the plugin. This PR adds the code to process these iso-3166-2-codes if there are no iso-3166-1-codes provided by the api.

@rdswift rdswift added the bug label May 11, 2024
@rdswift rdswift requested a review from phw May 11, 2024 17:37
Copy link
Member

@phw phw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's interesting, I didn't know this could happen.

Changes look good, let's merge it

@rdswift rdswift merged commit 45870b4 into metabrainz:2.0 May 11, 2024
7 checks passed
@rdswift rdswift deleted the additional_artists_details_country_fix branch May 11, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants