Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
feat: add IINA support and update mpv subtitle flags, while refining README documentation
Samir Hossains3a4446c8d20c
diff --git a/README.md b/README.mdindex bf08221..c61d6e5 100644--- a/README.md+++ b/README.md@@ -2,7 +2,7 @@# MovieBox-Tui-A lightning-fast terminal client for discovering and streaming movies, TV shows, and anime directly from your keyboard.+Stream and download movies, TV shows, and anime from the terminal.[](https://crates.io/crates/moviebox-tui)[](https://crates.io/crates/moviebox-tui)@@ -23,33 +23,24 @@ A lightning-fast terminal client for discovering and streaming movies, TV shows,## What is this?-**MovieBox-Tui** brings the cinematic streaming experience to your terminal. It directly queries the MovieBox API to search catalogs, resolve video streams, and seamlessly hand them off to your favorite local video player (`mpv`, `IINA`, or `VLC`).+**MovieBox-Tui** is a terminal-based streaming client. It interfaces with the MovieBox API to search catalogs, resolve stream URLs, and open them in your local video player (`mpv`, `IINA`, or `VLC`).-No browsers, no ads, no configuration. Type a title, select your preferred quality, and watch.+No browser or configuration is required. Search for a title, select a video quality, and press enter to play or download the stream.> **Disclaimer:** This project is a third-party client. It does not host, store, or redistribute any media. It strictly resolves links provided by the upstream API. It is intended for educational and personal use only. You are responsible for complying with copyright law in your jurisdiction.----## Features--- **Live Search & Discovery:** Type to search instantly, or use slash commands (`/movies`, `/shows`, `/anime`, `/discover`) to browse trending feeds.-- **Rich Metadata:** Hover over any title to instantly view full-resolution posters, release years, IMDb ratings, genres, and a complete synopsis.-- **Instant Playback:** Fetches multiple stream qualities (1080p, 720p, 480p) in parallel. Choose your resolution, pick subtitle tracks, and start watching in a single keystroke.-- **Lightning Fast Native Downloader:** Save videos for offline viewing using up to 16 parallel connections to maximize your bandwidth. Features live speed, ETA, and progress tracking.-- **Universal Terminal Support:** Works beautifully on any terminal and across all major operating systems (macOS, Linux, and Windows). Posters will render as native images in supported terminals or gracefully fall back to text.------## Screenshots<details open><summary><b>Home and search</b></summary><br>-| Home | Search results |-| :---: | :---: |-| <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/01-home.jpg" alt="Home screen" width="480"> | <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/02-search-results.jpg" alt="Search results" width="480"> |+<p align="center">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/01-home.jpg" alt="Home screen" width="49%">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/02-search-results.jpg" alt="Search results" width="49%">+</p></details>@@ -57,9 +48,10 @@ No browsers, no ads, no configuration. Type a title, select your preferred quali<summary><b>Details view</b></summary><br>-| Movie | TV series |-| :---: | :---: |-| <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/03-movie-details.jpg" alt="Movie details" width="480"> | <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/04-series-details.jpg" alt="Series details" width="480"> |+<p align="center">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/03-movie-details.jpg" alt="Movie details" width="49%">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/04-series-details.jpg" alt="Series details" width="49%">+</p></details>@@ -67,50 +59,44 @@ No browsers, no ads, no configuration. Type a title, select your preferred quali<summary><b>Discover feeds</b></summary><br>-| Movies | Series | Anime |-| :---: | :---: | :---: |-| <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/05-discover-movies.jpg" alt="Discover movies" width="320"> | <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/06-discover-series.jpg" alt="Discover series" width="320"> | <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/07-discover-anime.jpg" alt="Discover anime" width="320"> |+<p align="center">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/05-discover-movies.jpg" alt="Discover movies" width="32%">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/06-discover-series.jpg" alt="Discover series" width="32%">+ <img src="https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/assets/screenshots/07-discover-anime.jpg" alt="Discover anime" width="32%">+</p></details>----## Installation--You can install MovieBox-Tui using our automated scripts, or via Cargo if you are a Rust developer.--### macOS & Linux-```bash-curl -fsSL https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.sh | bash-```--### Windows-```powershell-powershell -c "irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex"-```+## Features-### Via Cargo-```bash-cargo install moviebox-tui-```+- **Search & discover easily:** Just start typing to find what you want, or use commands like `/movies` and `/anime` to see what's trending.+- **All the details you need:** Select a title to see its poster, IMDb rating, release year, genre, and a quick summary.+- **Play instantly:** The app grabs different stream qualities (like 1080p and 720p) behind the scenes. Pick your resolution and subtitles, and it starts playing immediately.+- **Built-in fast downloader:**+ - Download videos straight to your disk using multiple connections to max out your internet speed. You get live speed and ETA updates while you wait.+ - **Subtitles included:** It automatically grabs the `.srt` subtitle files to match your video.+ - **Download entire seasons:** Queue up a whole season at once. Just tell it what language you want for the subtitles, and it handles the rest automatically.+- **Works on your terminal:** Whether you're on macOS, Linux, or Windows, it just works. If your terminal supports it, you'll get actual image posters; otherwise, it falls back nicely to text.----## Requirements+## What you'll need-1. **Terminal:** Any terminal! A minimum window size of 85×24 is required. Modern terminals with graphics protocols will display native posters automatically.-2. **Video Player:** `mpv`, `IINA` (macOS), or `VLC` must be installed on your system. MovieBox-Tui will auto-detect them.+1. **A Terminal:** Any terminal works! Just make sure your window is at least 85×24 characters. If you use a modern terminal, you'll even get high quality native image posters automatically.+2. **A Video Player:** You'll need `mpv`, `IINA` (for macOS), or `VLC` installed. The app will automatically find whichever one you have and use it.<details>-<summary><b>Download pre-built binary</b></summary>+<summary><b>Want to download a pre-built binary instead?</b></summary><br>-You can download the compiled executable directly from the [Releases page](https://github.com/mesamirh/MovieBox-Tui/releases/latest).+You can grab the compiled executable directly from the [Releases page](https://github.com/mesamirh/MovieBox-Tui/releases/latest).</details><details>-<summary><b>Need to install a video player?</b></summary>+<summary><b>Need help installing a video player?</b></summary><br>```bash@@ -133,32 +119,54 @@ choco install mpv---+## Installation++The easiest way to get started is by using the quick install scripts below. If you're a Rust developer, you can also just grab it from Cargo.++### macOS & Linux+```bash+curl -fsSL https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.sh | bash+```++### Windows+```powershell+powershell -c "irm https://raw.githubusercontent.com/mesamirh/MovieBox-Tui/main/install.ps1 | iex"+```++### Cargo (Rust)+```bash+cargo install moviebox-tui+```++---+## Getting Started-Launch the app by typing `moviebox-tui` in your terminal.--- **Search:** Start typing to search for titles instantly.-- **Navigate:** Use the <kbd>Up</kbd> / <kbd>Down</kbd> / <kbd>Left</kbd> / <kbd>Right</kbd> arrow keys to move around.-- **Select:** Press <kbd>Enter</kbd> to view details, browse seasons/episodes, and start playback.-- **Switch Player:** Press <kbd>o</kbd> on a stream to choose a different installed player.-- **Download:** Press <kbd>d</kbd> to download the selected stream to your machine.-- **Refresh:** Press <kbd>r</kbd> to re-resolve expired stream links.-- **Help:** Press <kbd>?</kbd> anywhere in the app to view all keybindings.-- **Quit:** Press <kbd>q</kbd> or <kbd>Esc</kbd> repeatedly to exit.--### Slash Commands-Use the search bar to run dedicated slash commands:-- `/discover`, `/home` - Browse trending and curated titles.-- `/movies`, `/shows`, `/anime` - Jump to specific category feeds.-- `/clear-cache` - Free up disk space by removing cached data and images.-- `/update` - Manually check for updates.-- `/toggle-update` - Enable or disable background update checking.+Just open your terminal and type `moviebox-tui` to jump in.++Here's how to get around:+- **Search:** Just start typing! It searches instantly.+- **Navigate:** Use the <kbd>Up</kbd> / <kbd>Down</kbd> / <kbd>Left</kbd> / <kbd>Right</kbd> arrow keys.+- **Select:** Press <kbd>Enter</kbd> to view details, pick episodes, or start playing a video.+- **Switch Player:** Press <kbd>o</kbd> on a stream if you want to open it in a different video player.+- **Download:** Press <kbd>d</kbd> on any episode or season to save it to your disk (you'll get to pick your subtitles first).+- **Refresh:** Press <kbd>r</kbd> if a stream link expires and needs to be re-fetched.+- **Help:** Need a quick reminder? Press <kbd>?</kbd> anywhere to see the cheat sheet.+- **Quit:** Press <kbd>q</kbd> or mash <kbd>Esc</kbd> to exit.++### Handy Slash Commands+You can type these special commands straight into the search bar:+- `/discover` or `/home` - See what's trending right now.+- `/movies`, `/shows`, `/anime` - Jump straight to a specific category.+- `/clear-cache` - Free up disk space by wiping downloaded images and cache.+- `/update` - Check to see if there's a new version of the app.+- `/toggle-update` - Turn automatic background update checking on or off.---## Contributing-Contributions are highly welcome! For major changes, please open an issue first to discuss your ideas.+I'd love your help making this even better! If you've got a big feature in mind, it's usually best to open an issue first so we can chat about it.```bashgit clone https://github.com/<your-username>/MovieBox-Tui.git@@ -166,13 +174,13 @@ cd MovieBox-Tuicargo build```-We follow [Conventional Commits](https://www.conventionalcommits.org/). Ensure `cargo fmt` and `cargo clippy` pass cleanly before submitting a Pull Request. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.+Just try to follow [Conventional Commits](https://www.conventionalcommits.org/) and make sure `cargo fmt` and `cargo clippy` are happy before you open a PR. You can check out [CONTRIBUTING.md](CONTRIBUTING.md) for the full rundown.---## Support-If you enjoy this project and want to support its continuous development:+If this TUI makes your movie nights better and you want to support its development, crypto tips are always super appreciated:- **EVM (ETH, BNB, Polygon, etc):** `0x7ea20d5fa29d87f33195f5a3b211ff94038d794c`- **BTC:** `3MEAtqtRWrQBhnaMi3Zuf5nt2efNUS2LUQ`@@ -183,7 +191,7 @@ If you enjoy this project and want to support its continuous development:<div align="center">Dual-licensed under [MIT](LICENSE-MIT) or [Apache 2.0](LICENSE-APACHE) at your option.<br>-Made by [**@mesamirh**](https://github.com/mesamirh)+Built by [**@mesamirh**](https://github.com/mesamirh)<sub>Not affiliated with MovieBox or its operators.</sub>diff --git a/src/tui/app.rs b/src/tui/app.rsindex d24deb0..e908084 100644--- a/src/tui/app.rs+++ b/src/tui/app.rs@@ -3672,7 +3672,7 @@ impl App {self.state.player_picker_popup = false;tokio::spawn(async move {let mut local_sub = sub.clone();- if kind == crate::tui::state::PlayerKind::Vlc {+ if kind == crate::tui::state::PlayerKind::Vlc || kind == crate::tui::state::PlayerKind::Iina {if let Some(s_url) = sub {if let Ok(resp) = reqwest::get(&s_url).await {if let Ok(bytes) = resp.bytes().await {@@ -3722,7 +3722,7 @@ impl App {if let Some(s) = &local_sub {c.arg("--args").arg(&link)- .arg(format!("--mpv-sub-file={}", s));+ .arg(format!("--mpv-sub-files={}", s));} else {c.arg(&link);}