From 471798cf5e967b2d1bceb02d12a47fe9ad1cbed1 Mon Sep 17 00:00:00 2001 From: historia Date: Mon, 24 Aug 2026 03:22:29 -0400 Subject: feat: tui ffmpeg check --- app/ui/hub.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/ui/hub.py') diff --git a/app/ui/hub.py b/app/ui/hub.py index 6a94096..5b18869 100644 --- a/app/ui/hub.py +++ b/app/ui/hub.py @@ -14,6 +14,7 @@ main menu. import json import re +import shutil from pathlib import Path from typing import Optional, Tuple @@ -84,9 +85,13 @@ def _hub_menu(stdscr) -> Optional[tuple]: options.append(("Settings...", "settings")) options.append(("Quit", "quit")) rows = [(st.label, *_status_mark(st)) for st in statuses] + notice_lines = None + if shutil.which("ffmpeg") is None: + notice_lines = [("Warning: ffmpeg not installed!", "err")] choice = tui.menu( stdscr, "tts-audiobook-generator", options, - table_title="Backend status", table_rows=rows) + table_title="Backend status", table_rows=rows, + notice_lines=notice_lines) if choice is None or choice == "quit": return None if choice == "convert": -- cgit v1.2.3