Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

config.json

Written atomically under the config directory (dirs::config_dir()/moviebox-tui/; macOS ~/Library/Application Support/moviebox-tui, Linux ~/.config/moviebox-tui).

FieldTypeMeaning
auto_updateboolCheck for updates on startup (max once/hour).
last_update_checku64Epoch seconds of the last update check.
active_modestringLast active mode (streaming, tv, addon) restored on startup.
active_providerstringLast provider (moviebox, fourkhdhub, …).
active_themestringTheme name.
bdix_enabledboolShow BDIX providers (Bangladesh-only).
streaming_enabledboolEnable Streaming Mode navigation in bottom dock (/settings → Content Modes).
tv_enabledboolEnable TV Mode navigation in bottom dock (/settings → Content Modes).
addons_enabledboolEnable Addon Mode navigation in bottom dock (/settings → Content Modes).
default_playerstring or nullPreferred player: mpv, iina, vlc, android; absent/null until you choose one from the in-app picker.
download_dirstring or nullCustom directory for video and subtitle downloads (null uses OS default).

Interactive Settings Hub (/settings)

All settings in config.json can be configured interactively inside the application by typing /settings into the search bar.

  • General: Toggle automatic update checks, choose default media player (mpv, VLC, IINA, Android), and edit download folder path.
  • Content Modes: Enable or disable Streaming Mode, BDIX FTP sources, Live TV (IPTV), and HTTP Addons with safety guards (preventing 0 active modes).
  • Appearance: Cycle color themes live with real-time palette swatches and launch the visual theme swatch picker.
  • Maintenance: Purge disk cache, query GitHub for release updates, and view repository information.

Other persisted files

  • addons_config.json — list of installed HTTP addons in the config directory (see addons-mode.md).
  • tv_config.json — list of M3U playlist sources in the config directory (see tv-mode.md).
  • history.json — watch history in the system data directory (dirs::data_dir()/moviebox-tui/).
  • favorites.json: starred titles in the system data directory. Independent of history.json; clearing watch history or cache never touches it.
  • playback/ — temporary playback states in the system data directory for resilient progress tracking.
  • scripts/ — bundled player scripts (moviebox_tracker.lua) in the system data directory.
  • iptv_cache/ — legacy TV image cache directory that ClearCache still removes.

Environment variables

VariablePurpose
MOVIEBOX_LOGLog level: off, error, warn, info, debug, trace. See logging.md.
MOVIEBOX_PLAYERPreferred player (overrides default_player).
MOVIEBOX_MPV_PATHCustom mpv executable.
MOVIEBOX_VLC_PATHCustom VLC executable.
MOVIEBOX_IINA_PATHCustom IINA/iina-cli executable.
MOVIEBOX_FOURKHDHUB_URLOverride the 4KHDHub base URL.
MOVIEBOX_THEMEForce a theme (e.g. Mocha, Latte, Macchiato, Frappe, Nord, TokyoNight, Dracula, Gruvbox, RosePine). When unset and no saved theme exists, the app auto-detects: NO_COLOR wins, truecolor terminals get full palettes, 256-color terminals get quantized palettes, and the OSC 11 background query picks light/dark variants with WCAG AA contrast.
MOVIEBOX_NO_IMAGEDisable poster image queries (set to 1 or true).
MOVIEBOX_IMAGE_PROTOCOLOverride image protocol (kitty, sixel, iterm2, or none/off).
MOVIEBOX_CELL_SIZEOverride terminal cell size as WxH (e.g. 10x20) for poster scaling.

CLI

  • moviebox-tui --help and moviebox-tui -h print the help manual and exit.
  • moviebox-tui --version, moviebox-tui -v, and moviebox-tui -V print the version and exit.