Support and General Use > Audio Playback, Database and Playlists
Problem filtering by year
ilmioalias:
Hello,
i'm trying to filter songs by year subsequently by album; i created this custom tagnavi (only a snippet):
--- Code: ---%menu_start "custom_artist_initial" "Browse album artists"
"Non-alphabetic" -> albumartist ? albumartist < "A" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"A" -> albumartist ? albumartist ^ "A" | albumartist ^ "The A" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"B" -> albumartist ? albumartist ^ "B" | albumartist ^ "The B" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"C" -> albumartist ? albumartist ^ "C" | albumartist ^ "The C" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"D" -> albumartist ? albumartist ^ "D" | albumartist ^ "The D" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"E" -> albumartist ? albumartist ^ "E" | albumartist ^ "The E" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"F" -> albumartist ? albumartist ^ "F" | albumartist ^ "The F" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"G" -> albumartist ? albumartist ^ "G" | albumartist ^ "The G" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"H" -> albumartist ? albumartist ^ "H" | albumartist ^ "The H" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"I" -> albumartist ? albumartist ^ "I" | albumartist ^ "The I" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"J" -> albumartist ? albumartist ^ "J" | albumartist ^ "The J" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"K" -> albumartist ? albumartist ^ "K" | albumartist ^ "The K" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"L" -> albumartist ? albumartist ^ "L" | albumartist ^ "The L" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"M" -> albumartist ? albumartist ^ "M" | albumartist ^ "The M" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"N" -> albumartist ? albumartist ^ "N" | albumartist ^ "The N" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"O" -> albumartist ? albumartist ^ "O" | albumartist ^ "The O" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"P" -> albumartist ? albumartist ^ "P" | albumartist ^ "The P" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"Q" -> albumartist ? albumartist ^ "Q" | albumartist ^ "The Q" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"R" -> albumartist ? albumartist ^ "R" | albumartist ^ "The R" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"S" -> albumartist ? albumartist ^ "S" | albumartist ^ "The S" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"T" -> albumartist ? albumartist ^ "T" & albumartist !^ "The A" & albumartist !^ "The B" & albumartist !^ "The C" & albumartist !^ "The D" & albumartist !^ "The E" & albumartist !^ "The F" & albumartist !^ "The G" & albumartist !^ "The H" & albumartist !^ "The I" & albumartist !^ "The J" & albumartist !^ "The K" & albumartist !^ "The L" & albumartist !^ "The M" & albumartist !^ "The N" & albumartist !^ "The O" & albumartist !^ "The P" & albumartist !^ "The Q" & albumartist !^ "The R" & albumartist !^ "The S" & albumartist !^ "The U" & albumartist !^ "The V" & albumartist !^ "The W" & albumartist !^ "The X" & albumartist !^ "The Y" & albumartist !^ "The Z" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"U" -> albumartist ? albumartist ^ "U" | albumartist ^ "The U" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"V" -> albumartist ? albumartist ^ "V" | albumartist ^ "The V" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"W" -> albumartist ? albumartist ^ "W" | albumartist ^ "The W" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"X" -> albumartist ? albumartist ^ "X" | albumartist ^ "The X" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"Y" -> albumartist ? albumartist ^ "Y" | albumartist ^ "The Y" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
"Z" -> albumartist ? albumartist ^ "Z" | albumartist ^ "The Z" & filename !~ "_cmpl" -> year -> album -> title = "f_browse"
--- End code ---
the problem is albums are not filtered by year; whichever year i select, in the subseguent directory there are all albums of the artist
for example:
big thief ->
2022 ->
U.F.O.F.
Dragon New Warm Mountain I Believe in You
but only the last one is from 2022.
What i'm doing wrong?
Thanks in advance
EDIT:
maybe it's important: i use a FiiO M3K with last dev builds installation of rockbox.
Bilgus:
I can reproduce the bug but I haven't narrowed down why yet
ilmioalias:
OK, thanks.
Shall i open a bug?
Bilgus:
Well the issue appears to be with the logical OR
"L" -> albumartist ? albumartist ^ "L" -> year -> album -> title = "fmt_title" Works
I'll try to figure out the issue but the tagcache is a big ole mess
Bilgus:
I have a patch that fixes this https://gerrit.rockbox.org/r/c/rockbox/+/4248 Tagcache Don't create filters when parsing a logical OR
https://www.mediafire.com/file/12kxvxrq2qdlacn/FioM3kBaremetal_tagcache_bugfix4248_rockbox-full.zip/file
Should be in latest dev builds tomorrow..
Navigation
[0] Message Index
[#] Next page
Go to full version