Query items without certain field

Hi.

How can I query for items which do not have a certain field? I’m trying to find albums without ReplayGain information and the query I built is unhelpful: $ beet ls -a ^rg_album_gain.

Must be something simple, but I couldn’t figure it out from the docs.

Hi—this thread is relevant:

See the tip therein about how to use a regex query to match an empty field.

1 Like

Thanks, Adrian. This did it.

Can someone help me with this?

I have the same problem but nothing helped me from the link adrian posted. I’m also trying to find tracks without RG values

I even tried to make custom field with inline plugin:
“rgstatus: 1 if rg_album_peak > else 0”
But it seems that Beets doesn’t recognize rg_* tags as numbers so that didn’t worked either.