News for hackers. Stuff that matters.
Re:Beets: The music geek's media organizer by jank199x on Monday November 10, 2025 @05:41AM (#45874600)
I assume lastgenre with canonicalization[0] enabled is what you need, along with count=1 if multiple genres are an issue.

[0] https://beets.readthedocs.io/en/stable/plugins/lastgenre.htm...

Re:Beets: The music geek's media organizer by adg33 on Monday November 10, 2025 @08:26AM (#45875764)
I think I'm using that already.

Limiting to one genre I don't think will fix it - what I want is to define the allowable values for genre, and then limit to one.

It's probably better with the limit one though!

Re:Beets: The music geek's media organizer by jank199x on Monday November 10, 2025 @12:15PM (#45878142)
There's a whitelist option. Just read the docs, really, lastgenre is very configurable.
Re:Beets: The music geek's media organizer by HyprMusic on Monday November 10, 2025 @04:05PM (#45880913)
Set whitelist to a file path and then add a file with each genre that you want to keep on a new line. You can use the top-level genres in this file to base it off (except the whitelist isn't YAML, just a genre per line): https://raw.githubusercontent.com/beetbox/beets/master/beets...

Be sure to enable canonical so it converts the specific genres into their parent genre.