mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Track watch activity for scenes. (#3055)
* track watchtime and view time * add view count sorting, added continue position filter * display metrics in file info * add toggle for tracking activity * save activity every 10 seconds * reset resume when video is nearly complete * start from beginning when playing scene in queue Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -530,6 +530,10 @@ func exportScene(ctx context.Context, wg *sync.WaitGroup, jobChan <-chan *models
|
||||
|
||||
newSceneJSON.Galleries = gallery.GetRefs(galleries)
|
||||
|
||||
newSceneJSON.ResumeTime = s.ResumeTime
|
||||
newSceneJSON.PlayCount = s.PlayCount
|
||||
newSceneJSON.PlayDuration = s.PlayDuration
|
||||
|
||||
performers, err := performerReader.FindBySceneID(ctx, s.ID)
|
||||
if err != nil {
|
||||
logger.Errorf("[scenes] <%s> error getting scene performer names: %s", sceneHash, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user