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:
4
pkg/sqlite/migrations/41_scene_activity.up.sql
Normal file
4
pkg/sqlite/migrations/41_scene_activity.up.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `scenes` ADD COLUMN `resume_time` float not null default 0;
|
||||
ALTER TABLE `scenes` ADD COLUMN `last_played_at` datetime default null;
|
||||
ALTER TABLE `scenes` ADD COLUMN `play_count` tinyint not null default 0;
|
||||
ALTER TABLE `scenes` ADD COLUMN `play_duration` float not null default 0;
|
||||
Reference in New Issue
Block a user