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

Make sure release events are selected in preferred order. #2816

Merged
merged 2 commits into from
Feb 23, 2018

Conversation

djl
Copy link
Member

@djl djl commented Feb 23, 2018

Previously, release events were selected based on the order that MusicBrainz listed them rather than the order defined in config.yaml.

Opening this as a pull request instead of pushing directly because this may* cause large metadata changes the next time someone runs beet mbsync. But it should improve the metadata, making it align better with a user's preferred countries.

* I ran this over my entire collection of around 4000 albums and it changed only eight.

Previously, release events were selected based on the order that
MusicBrainz listed them rather than the order defined in config.yaml.
@sampsyo
Copy link
Member

sampsyo commented Feb 23, 2018

Nice! This is an elegant solution to a subtle problem. Would you mind adding a changelog entry describing the problem? Then this looks ready to merge.

One tiny aside: I note that this will have slightly different performance (possibly a larger number of total loop iterations, if there are more releases than configured countries). But this is very unlikely to actually matter.

@djl
Copy link
Member Author

djl commented Feb 23, 2018

I always forget about changelog entries!

@sampsyo
Copy link
Member

sampsyo commented Feb 23, 2018

Perfect. Thanks for adding that! ✨

@sampsyo sampsyo merged commit 3460723 into master Feb 23, 2018
@arcresu arcresu deleted the better-release-event branch April 24, 2019 05:03
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.

2 participants