Beets MusicBrainz Genres Plugin Released

For any beets users, I just released a plugin to apply MusicBrainz genres (and other configurable tags) to your library. It looks at both releases and their release groups, finds the most popular tags, then filters them based on vote count. If no genres are found at the release/release group level it can also fetch genres from the artist. If anyone gives it a try, let me know if you’re missing any configuration features or run into any problems.

Repository:

Documentation:
https://github.com/mistwyrm/BeetsPlugins/blob/main/README.md#musicbrainz-genres

8 Likes

I use beets, so thanks for this! When I return home in the new year, I’ll be happy to test for you.

1 Like

MusicBrainz Genres has been updated to 1.1 to fix a plugin breaking bug and implement a couple smaller fixes. Thanks to @halloleo for spotting the problem.

1 Like

MusicBrainz Genres has been updated to 1.2.1 to add the ability to blacklist genres and tags. An option to allow blacklisted genres only when they are the only available option is also configurable.

Documentation for the new feature:

Blacklisting Genres or Tags

If you would like to blacklist genres or tags, you can add them to the file blacklist.txt in the same folder you placed the plugin in. Each blacklisted tag should be entered on its own line. blacklist.txt can be manually created, or can be automatically created by running the plugin once.

New config option added to go along with feature:

alwaysblacklist: If set to True, genres in the blacklist.txt file will be removed with no exceptions. If set to False, blacklisted genres will be kept if they are the only available genres. Default: True.

Note: The blacklist is evaluated before (and after) the optional artist fallback. If alwaysblacklist is set to False and blacklisted genres are the only available genres at the release level, the artist fallback will not run.

1 Like