mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Apply suggestions from code review
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
parent
9e7d5debdc
commit
d7636fb0c3
2 changed files with 5 additions and 5 deletions
|
|
@ -373,7 +373,7 @@ def _merge_pseudo_and_actual_album(
|
||||||
class MusicBrainzPlugin(MetadataSourcePlugin):
|
class MusicBrainzPlugin(MetadataSourcePlugin):
|
||||||
@cached_property
|
@cached_property
|
||||||
def genres_field(self) -> str:
|
def genres_field(self) -> str:
|
||||||
return f"{config['musicbrainz']['genres_tag'].get()}-list"
|
return f"{self.config['genres_tag'].as_choice(['genre', 'tag'])}-list"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Set up the python-musicbrainz-ngs module according to settings
|
"""Set up the python-musicbrainz-ngs module according to settings
|
||||||
|
|
|
||||||
|
|
@ -137,11 +137,11 @@ Default
|
||||||
``beatport_album_id``, ``deezer_album_id``, ``tidal_album_id``). On re-imports
|
``beatport_album_id``, ``deezer_album_id``, ``tidal_album_id``). On re-imports
|
||||||
existing data will be overwritten.
|
existing data will be overwritten.
|
||||||
|
|
||||||
.. conf:: _genres_tag
|
.. conf:: genres_tag
|
||||||
:default: genres
|
:default: genre
|
||||||
|
|
||||||
Either ``genres`` or ``tags``. Specify ``genres`` to use just musicbrainz genres and
|
Either ``genre`` or ``tag``. Specify ``genre`` to use just musicbrainz genre and
|
||||||
``tags`` to use all user-supplied musicbrainz tags.
|
``tag`` to use all user-supplied musicbrainz tags.
|
||||||
|
|
||||||
.. include:: ./shared_metadata_source_config.rst
|
.. include:: ./shared_metadata_source_config.rst
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue