Skip to content

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

chore(tui): remove obsolete discover and tab slash commands in favor of /browse

Samir Hossains2de8d0376b81
diff --git a/README.md b/README.md
index d5c7316..ea403a7 100644
--- a/README.md
+++ b/README.md
@@ -201,12 +201,8 @@ moviebox-tui
| Command | Action |
| -------------------- | ----------------------------------------- |
-| `/discover`, `/home` | Open discovery view |
| `/browse` | Browse curated, rated, and most-watched views |
| `/history` | Show watch history |
-| `/movies` | Browse movies |
-| `/shows`, `/tvshows` | Browse series |
-| `/anime` | Browse anime |
| `/list` | Show IPTV channels |
| `/config` | Configure IPTV playlists |
| `/github` | Open the project repository |
diff --git a/src/tui/app/requests.rs b/src/tui/app/requests.rs
index b2c31ca..22b9965 100644
--- a/src/tui/app/requests.rs
+++ b/src/tui/app/requests.rs
@@ -27,16 +27,7 @@ impl App {
commands.push("/list");
commands.push("/config");
} else {
- commands.extend(vec![
- "/discover",
- "/home",
- "/browse",
- "/history",
- "/movies",
- "/shows",
- "/tvshows",
- "/anime",
- ]);
+ commands.extend(vec!["/browse", "/history"]);
}
let mut suggestions = vec![];
for cmd in commands {
diff --git a/src/tui/app/search.rs b/src/tui/app/search.rs
index a78ec9e..c8847e2 100644
--- a/src/tui/app/search.rs
+++ b/src/tui/app/search.rs
@@ -259,30 +259,6 @@ impl App {
return Some(true);
}
- if let Some(tid) = match lower_query {
- "/home" | "/discover" => Some("0"),
- "/movies" => Some("2"),
- "/shows" | "/tvshows" => Some("5"),
- "/anime" => Some("8"),
- _ => None,
- } {
- if self.state.active_provider != ProviderKind::MovieBox {
- self.state.set_status(
- "This provider has no shared discover feed; enter a title to search.",
- 180,
- );
- return Some(true);
- }
- self.state.active_browse_preset = None;
- self.action_sender
- .send(Action::FetchHomepage {
- tab_id: tid.to_string(),
- page: 1,
- })
- .ok();
- return Some(true);
- }
-
None
}
diff --git a/src/tui/screens/help.rs b/src/tui/screens/help.rs
index 1f7ad1d..76bc07d 100644
--- a/src/tui/screens/help.rs
+++ b/src/tui/screens/help.rs
@@ -115,30 +115,14 @@ pub fn draw(frame: &mut Frame, area: Rect, state: &AppState, theme: &Theme) {
" Discover & Search",
theme.header.add_modifier(ratatui::style::Modifier::BOLD),
)]),
- Line::from(vec![
- Span::styled(" /home,/discover ", theme.header),
- Span::styled("Trending & Featured", theme.text),
- ]),
Line::from(vec![
Span::styled(" /browse ", theme.header),
- Span::styled("IMDb-ranked movie views", theme.text),
+ Span::styled("Browse Movies & Shows", theme.text),
]),
Line::from(vec![
Span::styled(" /history ", theme.header),
Span::styled("Watch History", theme.text),
]),
- Line::from(vec![
- Span::styled(" /movies ", theme.header),
- Span::styled("Discover Movies", theme.text),
- ]),
- Line::from(vec![
- Span::styled(" /shows,/tvshows ", theme.header),
- Span::styled("Discover TV Shows", theme.text),
- ]),
- Line::from(vec![
- Span::styled(" /anime ", theme.header),
- Span::styled("Discover Anime", theme.text),
- ]),
Line::from(vec![
Span::styled(" /github ", theme.header),
Span::styled("Open GitHub Repo", theme.text),