fix(subsonic): only use genre tag when searching by genre (#4361)

This commit is contained in:
Kendall Garner 2025-07-20 01:52:29 +00:00 committed by Joe Stump
parent 638233c300
commit b101ba5116
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -163,7 +163,7 @@ func ByGenre(genre string) Options {
}
func filterByGenre(genre string) Sqlizer {
return persistence.Exists("json_tree(tags)", And{
return persistence.Exists(`json_tree(tags, "$.genre")`, And{
Like{"value": genre},
NotEq{"atom": nil},
})