How to create a flexible attribute of numeric type

I have added a flexible attribute played to my albums and I am able to query for fixed played counts:

beet ls played:1 -a 

but I have a hard time to query for all songs with played attributes of 1 or more.

I guess the reason is this: The type of the flexible attribute is string or similar, not numeric.

Any way to set it to numeric?

Yes! That’s what the types plugin is designed for:
https://beets.readthedocs.io/en/stable/plugins/types.html

2 Likes

Super cool. Will check it out. Thanks heaps!