stash/pkg/scene
Speck Pratt ebca98b46f Honor marker end times by default; skip zero-interval previews
Follow-up to the initial ceiling-configurable change, incorporating
product-review feedback. Two design shifts plus a read-side bug fix:

- Default MaxMarkerPreviewDuration flipped from 20 to 0 (ceiling
  disabled). User-set end times are now honored by default; the
  ceiling becomes an opt-in safety for imports or untrusted data.
  A buried setting at its old 20s default was unlikely to be found
  by users hitting the silent-truncation case.

- Non-positive intervals (endSeconds <= seconds) now skip preview
  generation entirely rather than falling back to the 20s default.
  A user who sets zero or negative duration either made a mistake
  (don't invent output) or marked a point without wanting a video
  (don't generate one they didn't ask for). Either way, skip with
  a warning log.

- Fix missing ConfigGeneralResult field wiring in
  resolver_query_configuration.go. The schema and mutation sides
  were wired in the initial commit but the query read path was
  missed, causing the Settings UI to display Go's zero-value (0)
  regardless of the stored config value.

Behavior change on upgrade: existing preview files remain unchanged.
To refresh previews for markers whose end times were previously
truncated at 20s, run Generate > Marker Previews with "Overwrite
Existing" enabled. To keep the old 20s ceiling, set Max marker
preview duration to 20 under Settings > System > Preview Generation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 08:03:37 -04:00
..
generate Honor marker end times by default; skip zero-interval previews 2026-04-22 08:03:37 -04:00
create.go Scene custom field backend support (#6584) 2026-02-18 16:50:32 +11:00
delete.go FR: Add Interfaces to Destroy File Database Entries (#6437) 2026-01-27 16:02:47 +11:00
export.go Scene custom field backend support (#6584) 2026-02-18 16:50:32 +11:00
export_test.go Scene custom field backend support (#6584) 2026-02-18 16:50:32 +11:00
filename_parser.go Match tag names/aliases exactly when testing uniqueness (#6809) 2026-04-08 13:11:12 +10:00
filter.go Selective clean (#2125) 2021-12-16 13:28:44 +11:00
find.go Ignore missing scenes when submitting fingerprints (#5799) 2025-04-02 15:48:07 +11:00
fingerprints.go Refactor stashbox package (#5699) 2025-03-25 10:30:51 +11:00
hash.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
import.go Scene custom field backend support (#6584) 2026-02-18 16:50:32 +11:00
import_test.go Scene custom field backend support (#6584) 2026-02-18 16:50:32 +11:00
marker_import.go Add marker end seconds import/export (#5777) 2025-03-28 16:50:26 +11:00
marker_import_test.go File storage rewrite (#2676) 2022-09-06 07:03:42 +00:00
marker_query.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
merge.go FR: Add Interfaces to Destroy File Database Entries (#6437) 2026-01-27 16:02:47 +11:00
migrate_hash.go Don't try to migrate non-existent vtt files (#5216) 2024-09-05 11:25:56 +10:00
migrate_screenshots.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
query.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
scan.go Make gallery/scene association during scan more consistent (#6705) 2026-03-19 08:54:44 +11:00
scan_test.go Fix stale browser-cached thumbnails after file content changes during scan. (#6622) 2026-03-02 15:53:02 +11:00
service.go Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
update.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
update_test.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00