diff options
| author | historia <historiavg@proton.me> | 2026-08-24 03:22:29 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-24 03:22:29 -0400 |
| commit | 471798cf5e967b2d1bceb02d12a47fe9ad1cbed1 (patch) | |
| tree | b974708bb60424fa5d39825e54813ed133bccc42 /app/ui/hub.py | |
| parent | 8e54a42db2690e0ac7f09fd400b29ad2fb2c9c5a (diff) | |
| download | tts-audiobook-generator-471798cf5e967b2d1bceb02d12a47fe9ad1cbed1.tar.gz | |
feat: tui ffmpeg check
Diffstat (limited to 'app/ui/hub.py')
| -rw-r--r-- | app/ui/hub.py | 7 |
1 files changed, 6 insertions, 1 deletions
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": |
