stash/internal/manager/config
CJ 66ceceeaf1
feat(dlna): add activity tracking for DLNA playback (#6407)
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)
2026-01-05 16:10:52 +11:00
..
config.go feat(dlna): add activity tracking for DLNA playback (#6407) 2026-01-05 16:10:52 +11:00
config_concurrency_test.go Fix setting pointers corrupting config in memory (#4868) 2024-05-23 10:56:18 +10:00
config_test.go Replace viper with koanf (#4845) 2024-05-21 11:24:47 +10:00
enums.go Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
init.go Upgrade to koanf 2.2.1 (#5985) 2025-11-06 18:20:52 +11:00
stash_config.go Add move files external interface (#3557) 2023-03-22 07:57:26 +11:00
tasks.go Add scan option to force gallery zip rescan (#4113) 2024-05-20 13:52:36 +10:00
ui.go Respect user preference for type-to-create in image/scene multi-select form (#6376) 2025-12-11 08:22:29 +11:00