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 21:11:15 +00:00
committed by GitHub
co-authored by Brian Doherty
parent cbab68b057
commit 7982ffc0b4
6 changed files with 26 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ func (c *Controller) ServeScrobble(r *http.Request) *spec.Response {
optStamp := params.GetOrTime("time", time.Now())
optSubmission := params.GetOrBool("submission", true)
if err := streamUpdateStats(c.DB, user.ID, track.Album.ID, optStamp); err != nil {
if err := streamUpdateStats(c.DB, user.ID, track, optStamp); err != nil {
return spec.NewError(0, "error updating stats: %v", err)
}