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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user