Skip to content
forked from Dink4n/ani-cli

A cli tool to browser and play anime

License

Notifications You must be signed in to change notification settings

kenielf/ani-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation





A cli to browse and watch anime (alone AND with friends). This tool scrapes the site animixplay.

Showcase

ani-cli.mp4

Table of Contents

Fixing errors

If you encounter "Video url not found" or any breaking issue, then make sure you are on latest version by typing sudo ani-cli -U to update on Linux, Mac and Android. On Windows, run gitbash as administrator then there type ani-cli -U. If after this the issue persists then open an issue.

If after updating you get the following error: "/usr/bin/ani-cli: line 470: /usr/bin/players/player_mpv: No such file or directory" then uninstall and reinstall ani-cli with the installation instructions provided below.

New in v3

We now scrape animixplay instead of gogoanime, which allows for faster link fetching as well as getting new 
releases sooner.

New arguments:
-f select provider to scrape first
-x print all video links from all providers to stdout (for debugging purpose)

To see a list with all the arguments, use the -h or --help argument

Install

IMPORTANT: Please uninstall ani-cli before proceeding.

ani-cli V3 has breaking changes and is incompatible with V2's install location. Plasase uninstall before proceeding.

Native packages

Packaging status

Linux

Install dependencies (See below)

sudo rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli" && \
sudo mkdir -p "/usr/local/share/" "/usr/local/bin/" && \
sudo git clone -b "master" "https://github.com/pystardust/ani-cli.git" "/usr/local/share/ani-cli" && \
sudo ln -sf "/usr/local/share/ani-cli/ani-cli" "/usr/local/bin/ani-cli"

Also note that mpv installed through flatpak is not compatible

MacOS

Install dependencies (See below)

Install HomeBrew if not installed.

rm -rf "$(brew --prefix)/share/ani-cli" "$(brew --prefix)/bin/ani-cli" && \
git clone -b "master" "https://github.com/pystardust/ani-cli.git" "$(brew --prefix)/share/ani-cli" && \
ln -sf "$(brew --prefix)/share/ani-cli/ani-cli" "$(brew --prefix)/bin/ani-cli"

To install (with Homebrew) the dependencies required on Mac OS, you can run:

brew install curl grep aria2 openssl@1.1 ffmpeg git && \
brew install --cask iina

Why iina and not mpv? Drop-in replacement for mpv for MacOS. Integrates well with OSX UI. Excellent support for M1. Open Source.

Windows

Make sure git bash is installed (Install)

Note that the installation instruction below must be done inside Git Bash, not in Command Prompt or Powershell

rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli" && \
mkdir -p "/usr/local/share/" "/usr/local/bin/" && \
git clone -b "master" "https://github.com/pystardust/ani-cli.git" "/usr/local/share/ani-cli" && \
ln -sf "/usr/local/share/ani-cli/ani-cli" "/usr/local/bin/ani-cli"

Run ani-cli in Git Bash (Running it in cmd or powershell may or may not work)

Android

Install termux (Guide)

rm -rf "$PREFIX/share/ani-cli" "$PREFIX/bin/ani-cli" && \
mkdir -p "$PREFIX/share/ani-cli" "$PREFIX/bin/ani-cli" && \
git clone -b "master" "https://github.com/pystardust/ani-cli.git" "$PREFIX/share/ani-cli" && \
ln -sf "$PREFIX/share/ani-cli/ani-cli" "$PREFIX/bin/ani-cli"

For doodstream to work you need to add any referrer in mpv by opening mpv (playstore version), going into Settings -> Advanced -> Edit mpv.conf and adding (for example):

referrer="https://gogoanime.fi/"

Make sure to update your packages:

pkg up

In the case mpv only plays audio, you can try running this command:

echo 'am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity' > $PREFIX/bin/mpv

Uninstall

  • Linux:
sudo rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli"
  • Mac:
rm -rf "$(brew --prefix)/share/ani-cli" "$(brew --prefix)/bin/ani-cli"
  • Windows: In Git Bash run:
rm -rf "/usr/local/share/ani-cli" "/usr/local/bin/ani-cli"
  • Android:
rm -rf "/data/data/com.termux/files/usr/share/ani-cli" "/data/data/com.termux/files/usr/bin/ani-cli"

Dependencies

  • grep
  • sed
  • awk
  • curl
  • openssl
  • mpv - Video Player
  • iina - mpv replacement for MacOS
  • aria2 - Download manager
  • ffmpeg - m3u8 Downloader

Homies

  • animdl: Ridiculously efficient, fast and light-weight (supports most sources: animixplay, 9anime...) (Python)
  • anime-helper-shell: A python shell for searching, watching, and downloading anime (Python)
  • anipy-cli: ani-cli rewritten in python (Python)
  • dra-cla: ani-cli equivalent for korean dramas (Shell)
  • kaa.si-cli: Stream anime from kaa.si and sync with anilist (Python)
  • manga-cli: Read manga in the cli (Shell)
  • mov-cli: Watch movies/tv shows in the cli (work in progress) (Python/Shell)
  • saikou: Best android app for anime/manga with anilist integration (Kotlin)

About

A cli tool to browser and play anime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%