diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-06 11:25:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-06 11:25:37 +0300 |
| commit | ef1f3d03ac3f117fecd999fc4fa96f557bfa8fe4 (patch) | |
| tree | f1d3507db5699d86045090e64db99781611c99b7 /internal/cli/video_runner.go | |
| parent | 8f906ac9efc703db4f15c39115394ca8cf01c119 (diff) | |
feat: add --video CLI flag to control Veo video prompt after story generation
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/<slug>/ are discovered from the CWD search root.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/cli/video_runner.go')
| -rw-r--r-- | internal/cli/video_runner.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |
