A rofi wrapper around ani-cli: a command-line tool to browser, download, and stream anime
Go to file
2021-11-08 09:44:49 -08:00
screenshots update readme and add screenshots 2021-11-08 00:37:08 -08:00
scripts update default theme file and make config a var 2021-11-02 15:18:23 -07:00
sql change search/watch date from date to datetime 2021-11-01 12:53:10 -07:00
themes update rofi config file and add db cleanup option 2021-11-07 22:02:31 -08:00
.gitignore update readme and add screenshots 2021-11-08 00:37:08 -08:00
ani-cli fix downloading to specific directory 2021-11-08 00:41:30 -08:00
aniwrapper add error checking to playlist mode 2021-11-08 00:55:36 -08:00
db.sh update name of repo and config dir to aniwrapper 2021-11-08 00:37:24 -08:00
LICENSE Create LICENSE 2021-06-09 17:56:54 +05:30
Makefile update setup file and add makefile to make simplify install 2021-10-31 13:24:41 -07:00
README.md Fix readme 2021-11-08 09:44:49 -08:00
setup.sh update name of repo and config dir to aniwrapper 2021-11-08 00:37:24 -08:00

Aniwrapper

Setup | Usage | Screenshots

Aniwrapper screenshot

Table of Contents

Introduction

This is a fork of Dink4n's ani-cli, which itself is a fork of pystardust's old-ani-cli

This fork is a wrapper around a modified version of ani-cli and uses rofi to gather information and control the program

In addition to rofi, I've also changed the way saving history works by integrating a local sqlite3 database with a table for search and watch history

It is built around Dink4n's fork of ani-cli since at the time of creation, this is the version that has downloading working correctly

This tool scrapes the site gogoanime.

It is intended to be called from the wrapper script aniwrapper, however using the ani-cli script itself is also possible

Setup

Dependencies

These are the minimum dependences required to run aniwrapper

  • grep
  • curl
  • sed
  • mpv
    • skip-intro.lua (installed in setup.sh)
  • ffmpeg
  • rofi
    • meh.rasi (installed in setup.sh)
  • sqlite3

Arch Linux

pacman -S --needed grep curl sed mpv ffmpeg rofi sqlite3

Installing

git clone https://github.com/ksyasuda/aniwrapper
cd aniwrapper

After cloning and switching into the aniwrapper directory, run the following commands to set up and install the script

chmod +x setup.sh
./setup.sh && sudo make install

The setup process consists of:

  • Creating the necessary configuration directories (if they don't already exist)
    • Aniwrapper config:$XDG_CONFIG_HOME/aniwrapper/
    • mpv config:$XDG_CONFIG_HOME/mpv/
  • Moving the configuration files and scripts to their respective directories
  • Creating the sqlite3 database with tables for search and watch history

Running sudo make install copies the ani-cli as well as the aniwrapper scripts to /usr/local/bin/

Usage

aniwrapper

# Launch aniwrapper menu
aniwrapper

ani-cli Script

# watch anime
ani-cli <query>

# download anime
ani-cli -d <download_directory>

# resume watching anime
ani-cli -H

# list searched anime
ani-cli -l

# add to playlist
ani-cli -a

# delete from playlist
ani-cli -d

# playlist mode
ani-cli -P

Multiple episodes can be viewed/downloaded by giving the episode range like so

Choose episode [1-13]: 1 6

This would open/download episodes 1 2 3 4 5 6

Screenshots

Aniwrapper Main Menu aniwrapper frontpage Aniwrapper Streaming Menu aniwrapper streaming options More to come soon... maybe