zero removes genres despite genres being listed in keep_fields
Problem :
The zero plugin removes existing genres even when genres is explicitly listed in keep_fields.
I am using beets 2.14.1.
My configuration contains:
zero: auto: yes keep_fields: - title - artist - album - albumartist - track - disc - year - label - publisher - genres - isrc - barcode - bpm - images - rg_track_gain - rg_track_peak - rg_album_gain - rg_album_peak - mb_albumid - mb_artistid - mb_albumartistid - mb_trackid - mb_releasegroupid
The source file contains existing genre metadata.
During import, the verbose log shows: zero: genres: ['Elektro', 'Techno/House'] -> None
So zero explicitly changes the existing genres value to None.
Expected behavior
If genres is present in zero.keep_fields, existing genre metadata should not be removed.
For example:
Before: genres = ['Elektro', 'Techno/House']
zero: keep_fields:
- genres
Expected: genres = ['Elektro', 'Techno/House']
Actual: genres = None
Configuration context
I deliberately want the source genre to be authoritative.
My intended workflow is:
- If the source file already contains a genre, preserve it.
- If the source file has no genre, MusicBrainz may provide one.
- Once a genre exists, zero must not remove it.I am also using:
musicbrainz: genres: no
because I do not want MusicBrainz to overwrite existing source genres.
Additional observation The verbose output identifies the field as genres: zero: genres: ['Elektro', 'Techno/House'] -> None
This is therefore not a genre vs. genres configuration typo.
Environment
- beets: 2.14.1
- Python: 3.13.5
- OS: Linux
- FLAC files
- zero plugin enabled
- musicbrainz plugin enabled
Question Is this expected behavior of zero, or is keep_fields not correctly protecting the genres field? If this is expected, what is the correct configuration for preserving existing genres values while allowing zero to clean all other metadata?
Thanks!
Source: beetbox/beets