Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(provider): reject disabled bdix restore

Samir Hossainscdb3cbf2cef6
diff --git a/docs/architecture.md b/docs/architecture.md
index 73c8e39..2670195 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -101,9 +101,9 @@ interval, forwarding them into the action channel (capacity 128).
## Configuration and persistence
-- `config.json` — settings (theme, provider, auto-update, `default_player`, BDIX).
-- `tv_config.json` — user M3U playlist sources (URLs or file paths).
-- `history.json` — watch history.
+- `config.json` — settings (theme, provider, auto-update, `default_player`, BDIX) in the config dir.
+- `tv_config.json` — user M3U playlist sources (URLs or file paths) in the config dir.
+- `history.json` — watch history in the system data dir.
- Cache lives under the system cache dir, keyed per provider.
- Logs live under the system data dir with rotation.
diff --git a/src/tui/app/mod.rs b/src/tui/app/mod.rs
index 99629e0..b8c4f5c 100644
--- a/src/tui/app/mod.rs
+++ b/src/tui/app/mod.rs
@@ -41,9 +41,13 @@ impl App {
let config = crate::tui::config::load();
state.auto_update = config.auto_update;
state.last_update_check = config.last_update_check;
- state.active_provider = config.active_provider;
- state.active_theme_kind = config.active_theme;
state.bdix_enabled = config.bdix_enabled;
+ state.active_provider = if !state.bdix_enabled && config.active_provider.is_bdix() {
+ crate::providers::models::ProviderKind::MovieBox
+ } else {
+ config.active_provider
+ };
+ state.active_theme_kind = config.active_theme;
state.default_player = config.default_player;
let mut theme = crate::tui::theme::Theme::new();