diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 14:06:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 14:06:20 +0300 |
| commit | 5300abbe90cf88d9c9d898c4b69989eaf312261b (patch) | |
| tree | fee3ac53bab0ed6fa294bb90334022393e97e624 | |
| parent | b7b2d404d035f4d83a5f3a2dc66055551dd022d3 (diff) | |
Extract thumbnail generation into thumb.Generator interface (2a)
thumb.Maker interface (MakeVideo/MakeImage) and FSMaker implementation live
in internal/thumb/maker.go. FSScanner holds thumbMkr thumb.Maker instead of
thumb.Generator, removing inline MkdirAll / path-derivation / skip-and-warn
logic from the scanner. SRP is restored: FSScanner orchestrates the scan,
thumb.Maker owns thumbnail production policy.
Build and all tests pass (go build ./... && go test ./... in player-server).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 files changed, 0 insertions, 0 deletions
