mirror of
https://github.com/beetbox/beets.git
synced 2025-12-16 05:34:47 +01:00
Add musicbrainz genre config option.
This commit is contained in:
parent
627005d4d1
commit
a79b239d4f
4 changed files with 14 additions and 3 deletions
|
|
@ -418,7 +418,7 @@ def album_info(release):
|
|||
info.media = first_medium.get('format')
|
||||
|
||||
genres = release.get('genre-list')
|
||||
if genres:
|
||||
if config['musicbrainz']['genres'] and genres:
|
||||
info.genre = ';'.join(g['name'] for g in genres)
|
||||
|
||||
info.decode()
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@ musicbrainz:
|
|||
ratelimit_interval: 1.0
|
||||
searchlimit: 5
|
||||
extra_tags: []
|
||||
genres: no
|
||||
|
||||
match:
|
||||
strong_rec_thresh: 0.04
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
----------
|
||||
|
|
|
|||
Loading…
Reference in a new issue