-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Unexpected results when filtering by year #11113
Comments
@uklotzde Please share your source. For 2.3 I only found TYER: Assuming that any 'year' string (of any length > 4) has just one four-char numerical field (at string index 0), a quick fix is to move "year" from |
https://id3.org/id3v2.4.0-structure
|
The raw |
It is a bit complicated because of legacy: See: |
That doesn't make any difference. Applications need to handle all common values that may occur in these fields. This is not restricted to ID3v2.x. |
For extracting meaningful data you need to parse those values liberally and then store them in your database: https://gitlab.com/uklotzde/aoide-rs/-/blob/dev/crates/media/src/util/mod.rs#L323 Don't expect that anyone adheres to specifications. You will find all kinds of values in user data. |
Bug Description
Filtering by an integer year only covers the special case where the corresponding
date
field contains an integer value. All other tracks are ignored.Example
year:2022
Found
2022
Not found
2022-12-06
2022-05-19T07:00:00Z
And this is only a small subset of what ID3v2 considers as valid. Surprisingly, these tracks are found when using the filter
year:2022-
with a trailing slash.Probably because the search is now falling back to a string-like match.The filter condition is silently ignored and simply all tracks are found, which is even worse.Version
2.3
OS
No response
The text was updated successfully, but these errors were encountered: