You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asking about this here because I'm not 100% confident this is an issue.
I noticed that searching for a comma in a tag seems to break the search parsing. I say "broken" because the resulting behavior is not self-consistent; in my tests the search will return all files even if you invert the tag search with a "^". If I comma was causing some sort of unfamiliar expected behavior that results in returning all files, then inverting the search should return no files. But this isn't the case, which leads me to suspect a parsing issue.
I'm on Beets 2.7.1.
$ beet ls | wc -l
6049
$ beet ls 'some random text' sometag:xxx, | wc -l
6049
$ beet ls 'some random text' ^sometag:xxx, | wc -l
6049
$ beet ls ^sometag:xxx, | wc -l
6049
$ beet ls 'some random text' ^sometag:'xxx,' | wc -l
6049
$ beet ls 'some random text' ^sometag::'xxx,' | wc -l
6049
Here is a sample query, you can see that the comma gets dropped from the actual query.
What I was actually trying to do: come up with a query for (a) any track with no genre tag, and (b) any track with multiple genres tagged. So far I haven't figured out how to do that, there seem to be other issues (?) in searching for a blank genre tag (^$ doesn't work).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Asking about this here because I'm not 100% confident this is an issue.
I noticed that searching for a comma in a tag seems to break the search parsing. I say "broken" because the resulting behavior is not self-consistent; in my tests the search will return all files even if you invert the tag search with a "^". If I comma was causing some sort of unfamiliar expected behavior that results in returning all files, then inverting the search should return no files. But this isn't the case, which leads me to suspect a parsing issue.
I'm on Beets 2.7.1.
Here is a sample query, you can see that the comma gets dropped from the actual query.
What I was actually trying to do: come up with a query for (a) any track with no genre tag, and (b) any track with multiple genres tagged. So far I haven't figured out how to do that, there seem to be other issues (?) in searching for a blank genre tag (
^$doesn't work).Beta Was this translation helpful? Give feedback.
All reactions