stash/internal/manager/config
Speck Pratt e9e427772b Make marker preview duration ceiling configurable
Replaces the hardcoded maxMarkerPreviewDuration = 20 constant in
pkg/scene/generate/marker_preview.go with a configurable setting on
ConfigGeneral, mirroring the PreviewSegments wiring pattern.

- Default 20 preserves existing behavior for all installs
- Positive N sets the ceiling in seconds
- 0 (or any value <= 0) disables the ceiling, honoring explicit
  endSeconds verbatim
- Adds logger.Warnf for non-positive intervals to aid diagnosis of
  imported or malformed marker data
- Incidentally prevents zero/negative-duration ffmpeg calls that
  were possible under the previous logic

Context: closed issue #6852 (template non-conformance), Discussion
#6851 (mobile-first direction).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 07:08:15 -04:00
..
config.go Make marker preview duration ceiling configurable 2026-04-22 07:08:15 -04: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 Fix panic when library path has trailing path separator (#6619) 2026-02-28 10:51:02 +11:00
tasks.go Image phash generation (#6497) 2026-01-27 17:00:56 +11: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