-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boolean "not" operator in queries #819
Comments
Sorry, I didn't quite make this clear over twitter: you can probably use regexes to do negation today using that syntax. Have you tried something like
or something similar? (Note the double colon to enable regex search.) What we should add is explicit support for the "not" operator in queries so that silly regex hacks like this are not necessary. |
Ah; I couldn't get that to work, I swear, but this now does; beet ls genre::^'(?!kids)' so, hurrah! and thank you, but having the not operator would be even nicer. :-) |
Syntax ideas: Example: I want to find all album by artist Evanescence, but not their album “Evanescence”:
or maybe
|
Added in #1728. |
I'd like to be able to do reverse matching regex in beets so I can create smart playlists with one or more specific exclusions, i.e.;
beet list ^(?!undesirable)$
or
smartplaylist:
playlists:
- name: notaudiobooks.m3u
query: 'genre:^(?!(audiobook)|(spoken))$'
The text was updated successfully, but these errors were encountered: