Apply suggestions from code review

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
Aidan Epstein 2025-11-11 13:18:51 -08:00
parent 9e7d5debdc
commit d7636fb0c3
2 changed files with 5 additions and 5 deletions

View file

@ -373,7 +373,7 @@ def _merge_pseudo_and_actual_album(
class MusicBrainzPlugin(MetadataSourcePlugin):
@cached_property
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):
"""Set up the python-musicbrainz-ngs module according to settings

View file

@ -137,11 +137,11 @@ Default
``beatport_album_id``, ``deezer_album_id``, ``tidal_album_id``). On re-imports
existing data will be overwritten.
.. conf:: _genres_tag
:default: genres
.. conf:: genres_tag
:default: genre
Either ``genres`` or ``tags``. Specify ``genres`` to use just musicbrainz genres and
``tags`` to use all user-supplied musicbrainz tags.
Either ``genre`` or ``tag``. Specify ``genre`` to use just musicbrainz genre and
``tag`` to use all user-supplied musicbrainz tags.
.. include:: ./shared_metadata_source_config.rst