Skip to content

Modifying "genre" instead of "genres" fails silently #6483

@lueckem

Description

@lueckem

Problem

As already discussed in #6465, the "genre" field is now called "genres".
If I still use "genre", e.g.,

$ beet mod -a "name" genre=Rock

the command sets the field "genre" in the database, but does not write to the genre tag of the music files.
While this is technically correct behavior, it is almost never what the user actually wants. It took me quite a bit of time to figure out what was going wrong.

Suggestion:
Instead of "failing" silently, print a warning or info if the "genre" field is modified. For example

Warning: Use the field "genres" instead of "genre" to modify the genre.

Thanks for your good work!

Setup

  • OS: Archlinux
  • Python version: 3.14.3
  • beets version: 2.7.1
  • Turning off plugins made problem go away (yes/no): no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions