From c2cacc796a92df6334ca88ea2ffcc79df15c7a18 Mon Sep 17 00:00:00 2001 From: Nika Siradze Date: Sat, 4 Jul 2026 00:37:58 +0400 Subject: [PATCH] Add --thumbnails / --no-thumbnails flags to `podcli process` Thumbnail generation is already opt-in (it needs a brand thumbnail config and is off for new users), but there was no explicit switch to force it on or off for a run. Add tri-state flags on the process command that set the existing generate_thumbnails config override: unset keeps the opt-in default, --thumbnails forces on, --no-thumbnails skips it. --- backend/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/cli.py b/backend/cli.py index 2ec78b1..8fdba34 100644 --- a/backend/cli.py +++ b/backend/cli.py @@ -440,6 +440,8 @@ def cmd_process(args): config["caption_style"] = args.caption_style if args.crop: config["crop_strategy"] = args.crop + if getattr(args, "thumbnails", None) is not None: + config["generate_thumbnails"] = args.thumbnails if args.top: config["top_clips"] = args.top if getattr(args, "review_each", False): @@ -3269,6 +3271,8 @@ def main(): proc.add_argument("-p", "--preset", help="Load a saved preset") proc.add_argument("--engine", choices=["whisper-py", "whispercpp"], help="Transcription engine (default: whisper-py; whispercpp is the native, PyTorch-free path)") proc.add_argument("--fast", action="store_true", help="Draft mode: tiny Whisper, heuristic selection, center crop, low quality") + proc.add_argument("--thumbnails", dest="thumbnails", action="store_true", default=None, help="Force thumbnail generation on") + proc.add_argument("--no-thumbnails", dest="thumbnails", action="store_false", help="Skip thumbnail generation") proc.add_argument("--caption-style", choices=["branded", "hormozi", "karaoke", "subtle"]) proc.add_argument("--crop", choices=["center", "face", "speaker", "speaker-hardcut"]) proc.add_argument("--logo", help="Logo image (asset name or path)")