mirror of
https://github.com/stashapp/stash.git
synced 2026-01-16 21:22:33 +01:00
Adds time-based activity tracking for scenes played via DLNA, enabling play count, play duration, and resume time tracking similar to the web frontend. Key features: - Uses existing 'trackActivity' UI setting (no new config needed) - Time-based tracking (elapsed session time / video duration) - 5-minute session timeout to handle aggressive client buffering - Minimum thresholds before saving (1% watched or 5 seconds) - Respects minimumPlayPercent setting for play count increment Implementation: - New ActivityTracker in internal/dlna/activity.go - Session management with automatic expiration - Integration via DLNA service initialization Limitations: - Cannot detect actual playback position (only elapsed time) - Cannot detect seeking or pause state - Designed for upstream compatibility (no complex dependencies) |
||
|---|---|---|
| .. | ||
| activity.go | ||
| activity_test.go | ||
| cd-service-desc.go | ||
| cds.go | ||
| cds_test.go | ||
| cm-service-desc.go | ||
| cms.go | ||
| dms.go | ||
| doc.go | ||
| html.go | ||
| mrrs.go | ||
| paging.go | ||
| service.go | ||
| whitelist.go | ||
| xmsr-service-desc.go | ||