mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
fix(subsonic): only use genre tag when searching by genre (#4361)
This commit is contained in:
parent
638233c300
commit
b101ba5116
@ -163,7 +163,7 @@ func ByGenre(genre string) Options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func filterByGenre(genre string) Sqlizer {
|
func filterByGenre(genre string) Sqlizer {
|
||||||
return persistence.Exists("json_tree(tags)", And{
|
return persistence.Exists(`json_tree(tags, "$.genre")`, And{
|
||||||
Like{"value": genre},
|
Like{"value": genre},
|
||||||
NotEq{"atom": nil},
|
NotEq{"atom": nil},
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user