From 316dde4919d382e242d02c42c1453ef7536b2705 Mon Sep 17 00:00:00 2001 From: tinqs-limited Date: Sun, 7 Jun 2026 15:36:29 +0100 Subject: [PATCH] Fix Windows console encoding in generate-batch progress output. Co-authored-by: Cursor --- src/ozan_radio/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ozan_radio/__main__.py b/src/ozan_radio/__main__.py index 073fdc5..b84382e 100644 --- a/src/ozan_radio/__main__.py +++ b/src/ozan_radio/__main__.py @@ -49,7 +49,8 @@ async def generate_batch(count: int) -> None: print(f"Batch: {count} vocal tracks (daily limit ignored)\n") for i, hint in enumerate(hints, 1): - print(f"\n{'=' * 60}\n[{i}/{count}] {hint[:72]}…\n{'=' * 60}") + preview = hint[:72].encode("ascii", errors="replace").decode() + print(f"\n{'=' * 60}\n[{i}/{count}] {preview}...\n{'=' * 60}", flush=True) try: await generate_one(hint) except Exception as exc: