stash/internal/dlna
CJ 95b1bce917
fix(dlna): improve activity tracking accuracy and efficiency (#6483)
* fix(dlna): improve activity tracking accuracy and efficiency

- Remove play duration tracking: DLNA clients buffer aggressively and
  don't report playback position, making duration estimates unreliable.
  Saving inaccurate values corrupts analytics.

- Combine database transactions: Resume time and view count updates
  now happen in a single transaction for atomicity and performance.

- Keep resume time tracking: While imprecise, it provides useful
  "continue watching" hints. The cost of being wrong is low (user
  just seeks).

* remove elasped time check
2026-01-12 11:12:03 +11:00
..
activity.go fix(dlna): improve activity tracking accuracy and efficiency (#6483) 2026-01-12 11:12:03 +11:00
activity_test.go fix(dlna): improve activity tracking accuracy and efficiency (#6483) 2026-01-12 11:12:03 +11:00
cd-service-desc.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
cds.go Use slices package from the stdlib when possible (#5360) 2024-10-29 11:26:23 +11:00
cds_test.go Restructure data layer (#2532) 2022-09-06 07:03:40 +00:00
cm-service-desc.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
cms.go Feature: AVIF support (#6288) 2025-11-28 07:19:32 +11:00
dms.go feat(dlna): add activity tracking for DLNA playback (#6407) 2026-01-05 16:10:52 +11:00
doc.go Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
html.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
mrrs.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
paging.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
service.go feat(dlna): add activity tracking for DLNA playback (#6407) 2026-01-05 16:10:52 +11:00
whitelist.go Use slices package from the stdlib when possible (#5360) 2024-10-29 11:26:23 +11:00
xmsr-service-desc.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00