fix(subsonic): getLyrics does not try to retrieve lyrics from external files (#4232)

This commit is contained in:
wilywyrm
2025-06-15 09:40:40 -07:00
committed by GitHub
parent 65029968ab
commit 9249659773
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -108,14 +108,13 @@ func SongsByRandom(genre string, fromYear, toYear int) Options {
return addDefaultFilters(options)
}
func SongWithLyrics(artist, title string) Options {
func SongWithArtistTitle(artist, title string) Options {
return addDefaultFilters(Options{
Sort: "updated_at",
Order: "desc",
Max: 1,
Filters: And{
Eq{"title": title},
NotEq{"lyrics": "[]"},
Or{
persistence.Exists("json_tree(participants, '$.albumartist')", Eq{"value": artist}),
persistence.Exists("json_tree(participants, '$.artist')", Eq{"value": artist}),