mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-28 03:19:38 +00:00
feat(server): add averageRating to smart playlists (#5092)
This commit is contained in:
parent
acd69f6a4f
commit
3d86d44fd9
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ var fieldMap = map[string]*mappedField{
|
|||
"daterated": {field: "annotation.rated_at"},
|
||||
"playcount": {field: "COALESCE(annotation.play_count, 0)"},
|
||||
"rating": {field: "COALESCE(annotation.rating, 0)"},
|
||||
"averagerating": {field: "media_file.average_rating", numeric: true},
|
||||
"albumrating": {field: "COALESCE(album_annotation.rating, 0)", joinType: JoinAlbumAnnotation},
|
||||
"albumloved": {field: "COALESCE(album_annotation.starred, false)", joinType: JoinAlbumAnnotation},
|
||||
"albumplaycount": {field: "COALESCE(album_annotation.play_count, 0)", joinType: JoinAlbumAnnotation},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue