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

Get genres from both musicbrainz releases and release-groups. #4044

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

aereaux
Copy link
Contributor

@aereaux aereaux commented Sep 8, 2021

Description

This adds the votes from each.

This also changes the behavior to reset genre tags if the genre option is
enabled and no tags are received from musicbrainz.

This also sorts genres by the number of votes.

This is typically more useful because release-groups are usually better tagged, and now the %first function can be used to get the most popular genre tag. Let me know if there are any other improvements I could make here.

To Do

  • Documentation. (If you've add a new command-line flag, for example, find the appropriate page under docs/ to describe it.)
  • Changelog. (Add an entry to docs/changelog.rst near the top of the document.)
  • Tests. (Encouraged but not strictly required.)

@sampsyo
Copy link
Member

sampsyo commented Sep 8, 2021

Neat; this seems like a very good idea! I'm in favor.

It looks like there are a couple of style nitpicks. And could you also please add a note to the changelog? I'm also not sure whether there's somewhere in the documentation we should mention this; if we currently describe the MB genre stuff anywhere, maybe it needs a mention there.

@aereaux
Copy link
Contributor Author

aereaux commented Sep 9, 2021

Thanks for the quick response! I added a changelog, docs tweak, and addressed the lint error

@aereaux aereaux force-pushed the add_genres branch 4 times, most recently from f0f4ec7 to 4f05bfa Compare September 9, 2021 05:18
This adds the votes from each.

This also changes the behavior to reset tags if the genre option is
enabled and no tags are received from musicbrainz.

This also sorts genres by the number of votes.
@sampsyo
Copy link
Member

sampsyo commented Sep 9, 2021

Nice; this looks great! Thank you!!

@sampsyo sampsyo merged commit 410deb6 into beetbox:master Sep 9, 2021
@sampsyo sampsyo mentioned this pull request Sep 9, 2021
3 tasks
arogl added a commit to arogl/beets that referenced this pull request Sep 26, 2021
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