Skip to content

Commit

Permalink
Add use_mb_genres config option.
Browse files Browse the repository at this point in the history
  • Loading branch information
aereaux committed Oct 29, 2020
1 parent d011a4e commit b7f0865
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beets/autotag/mb.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def album_info(release):
info.media = first_medium.get('format')

genres = release.get('genre-list')
if genres:
if config['use_mb_genres'] and genres:
info.genre = ';'.join(g['name'] for g in genres)

info.decode()
Expand Down
1 change: 1 addition & 0 deletions beets/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ original_date: no
artist_credit: no
id3v23: no
va_name: "Various Artists"
use_mb_genres: no

ui:
terminal_width: 80
Expand Down
6 changes: 4 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ New features:
* :doc:`/plugins/web`: add DELETE and PATCH methods for modifying items
* :doc:`/plugins/lyrics`: Removed LyricWiki source (shut down on 21/09/2020).
* Added a ``--plugins`` (or ``-p``) flag to specify a list of plugins at startup.
* Use musicbrainz genre tag api to get genre information. This currently
* Use the musicbrainz genre tag api to get genre information. This currently
depends on functionality that is currently unreleased in musicbrainzngs.
See https://github.com/alastair/python-musicbrainzngs/pull/247 and
Once the functionality has been released, you can enable it with the
``use_mb_genres`` option. See
https://github.com/alastair/python-musicbrainzngs/pull/247 and
https://github.com/alastair/python-musicbrainzngs/pull/266 .
Thanks to :user:`aereaux`.

Expand Down
8 changes: 8 additions & 0 deletions docs/reference/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ Sets the albumartist for various-artist compilations. Defaults to ``'Various
Artists'`` (the MusicBrainz standard). Affects other sources, such as
:doc:`/plugins/discogs`, too.

.. _use_mb_genres:

use_mb_genres
~~~~~~~~~~~~~

Use Musicbrainz genre tags to populate the ``genre`` tag. This will make it a
semicolon-separated list of all the genres tagged for the release on
musicbrainz.

UI Options
----------
Expand Down

0 comments on commit b7f0865

Please sign in to comment.