summaryrefslogtreecommitdiff
path: root/player-server
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 14:06:20 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 14:06:20 +0300
commit5300abbe90cf88d9c9d898c4b69989eaf312261b (patch)
treefee3ac53bab0ed6fa294bb90334022393e97e624 /player-server
parentb7b2d404d035f4d83a5f3a2dc66055551dd022d3 (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>
Diffstat (limited to 'player-server')
0 files changed, 0 insertions, 0 deletions