feat(subsonic): change frequent album list to use total time played per album instead of play count. (#331)

Co-authored-by: Brian Doherty <brian@mediaserver.dohertyfamily.me>
This commit is contained in:
brian-doherty
2023-06-29 16:11:15 -05:00
committed by GitHub
parent cbab68b057
commit 7982ffc0b4
6 changed files with 26 additions and 7 deletions

View File

@@ -190,6 +190,7 @@ type Play struct {
AlbumID int `gorm:"not null; index" sql:"default: null; type:int REFERENCES albums(id) ON DELETE CASCADE"`
Time time.Time `sql:"default: null"`
Count int
Length int
}
type Album struct {