Anime Player CLI is a simple command-line tool to stream anime directly from your terminal. It fetches stream URLs from the amvstr.me API and plays anime episodes using mpv
media player.
This tool provides two modes:
- Default mode: Plays the anime episode in your default media player window.
- Terminal mode: Streams anime directly within the terminal using sixel graphics.
- Fetch anime streams from the web.
- Play episodes in your default media player.
- Watch anime directly in your terminal using sixel graphics.
mpv
Media Player: This tool usesmpv
for streaming.- Snap (optional): You can install
mpv
using Snap on Ubuntu.
- Ensure Snap is installed and up-to-date:
sudo apt update sudo apt install snapd
- Install
mpv
using snapsudo snap install mpv
-
Fork and clone the repo
-
Build the project using
go build -o anime
-
Move it to system's PATH
sudo mv anime /usr/bin/
-
Use the following syntax to play an anime episode:
anime [anime-name] [episode-num]
Example:
anime naruto 5
-
To stream anime directly in your terminal, use the
--in-terminal
flag:anime [anime-name] [episode-num] --in-terminal
Playing Naruto episode 5
A window with the anime episode will open.
Playing Naruto episode 5
The anime will play directly within your terminal.
- Make sure the anime name and episode number are correct, as the API will not fetch invalid entries.
- Ensure that
mpv
supports sixel graphics if you plan to use the--in-terminal
mode.
This project is licensed under the MIT License. Feel free to modify and distribute it.
If you want to contribute or report bugs, feel free to submit an issue or a pull request on the project repository.
Enjoy your anime streaming! 🎥✨