From ef1f3d03ac3f117fecd999fc4fa96f557bfa8fe4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 6 Apr 2026 11:25:37 +0300 Subject: feat: add --video CLI flag to control Veo video prompt after story generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add VideoEnabled bool (default true) to Flags, register --video bool flag in command.go, export PromptForGalleryVideos/GenerateSelectedVideos, and wire them into main.go via runStoryVideos — skipped when --video=false. Also update findGalleryPages to walk subdirectories recursively so gallery PNGs inside comics// are discovered from the CWD search root. Co-Authored-By: Claude Sonnet 4.6 --- internal/cli/video_runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/cli/video_runner.go') diff --git a/internal/cli/video_runner.go b/internal/cli/video_runner.go index 40a1fdd..2679a26 100644 --- a/internal/cli/video_runner.go +++ b/internal/cli/video_runner.go @@ -7,19 +7,19 @@ import ( "codeberg.org/snonux/totalrecall/internal/video" ) -// generateSelectedVideos is the CLI runner that animates gallery PNG files +// GenerateSelectedVideos is the CLI runner that animates gallery PNG files // into MP4 clips using Google's Veo model. It processes pages sequentially // (Veo generation is slow and API quotas make parallelism impractical). // // apiKey is the Google/Gemini API key passed by the caller. -// selected is the list of gallery page numbers to process (from promptForGalleryVideos). +// selected is the list of gallery page numbers to process (from PromptForGalleryVideos). // outputDir is both the directory that contains the gallery PNGs and the // destination for the resulting MP4 files (written next to the PNGs). // // Each page prints a "Generating…" line before the API call and a "Video saved:" // line with the output path on success. The function stops and returns on the // first error so callers can log it without silently skipping pages. -func generateSelectedVideos(apiKey string, selected []int, outputDir string) error { +func GenerateSelectedVideos(apiKey string, selected []int, outputDir string) error { if len(selected) == 0 { return nil } -- cgit v1.2.3