mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
chore(smartplaylists): log field parsing error
Signed-off-by: David <dvedvick@gmail.com>
This commit is contained in:
parent
62d9bc6c5a
commit
7328bbbba0
@ -1,5 +1,7 @@
|
||||
package criteria
|
||||
|
||||
import "github.com/navidrome/navidrome/log"
|
||||
|
||||
// Conjunctions need to implement this interface, to allow Criteria to extract child playlist IDs recursively
|
||||
type conjunction interface {
|
||||
ChildPlaylistIds() []string
|
||||
@ -193,10 +195,14 @@ func extractPlaylistField(inputRule any, field string) (values []string) {
|
||||
case InPlaylist:
|
||||
if value, ok := rule[field].(string); ok {
|
||||
values = append(values, value)
|
||||
} else {
|
||||
log.Warn("Playlist field not a string", field)
|
||||
}
|
||||
case NotInPlaylist:
|
||||
if value, ok := rule[field].(string); ok {
|
||||
values = append(values, value)
|
||||
} else {
|
||||
log.Warn("Playlist field not a string", field)
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user