mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-07 06:27:36 +03:00
Adding song and album counts
This commit is contained in:
parent
167e7a1825
commit
3cc92a32bd
9 changed files with 32 additions and 7 deletions
|
@ -32,6 +32,7 @@ type Entry struct {
|
|||
ArtistId string
|
||||
Type string
|
||||
UserRating int
|
||||
SongCount int
|
||||
|
||||
UserName string
|
||||
MinutesAgo int
|
||||
|
@ -59,6 +60,7 @@ func FromAlbum(al *domain.Album) Entry {
|
|||
e.ArtistId = al.ArtistId
|
||||
e.UserRating = al.Rating
|
||||
e.Duration = al.Duration
|
||||
e.SongCount = al.SongCount
|
||||
return e
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue