aniwrapper/README.md

142 lines
3.2 KiB
Markdown
Raw Normal View History

2021-11-08 00:37:08 -08:00
<div align="center">
# Aniwrapper
[Setup](#setup) | [Usage](#usage) | [Screenshots](#screenshots)
![Aniwrapper screenshot](./screenshots/aniwrapper_home.png)
</div>
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**
- [Aniwrapper](#aniwrapper)
2021-11-08 01:49:05 -08:00
- [Introduction](#introduction)
2021-11-08 00:37:08 -08:00
- [Setup](#setup)
- [Dependencies](#dependencies)
- [Arch Linux](#arch-linux)
2021-11-08 01:49:05 -08:00
- [Installing](#installing)
- [Usage](#usage)
- [aniwrapper](#aniwrapper)
- [ani-cli Script](#ani-cli-script)
- [Screenshots](#screenshots)
2021-11-08 00:37:08 -08:00
<!-- markdown-toc end -->
2021-11-08 01:49:05 -08:00
# Introduction
This is a fork of [Dink4n's ani-cli](https://github.com/Dink4n/ani-cli),
which itself is a fork of
pystardust's [old-ani-cli](https://github.com/pystardust/ani-cli/tree/old-ani-cli)
This fork is a wrapper around a modified version of ani-cli
and uses [rofi](https://github.com/davatorium/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](https://www.sqlite.org/index.html) 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](https://gogoanime.vc).
It is intended to be called from the wrapper script `aniwrapper`,
however using the ani-cli script itself is also possible
2021-11-08 00:37:08 -08:00
# 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
```sh
pacman -S --needed grep curl sed mpv ffmpeg rofi sqlite3
```
## Installing
```sh
git clone https://github.com/ksyasuda/aniwrapper
cd aniwrapper
```
2021-11-08 01:49:05 -08:00
After cloning and switching into the `aniwrapper` directory, run the following commands to set up and install the script
2021-06-09 05:25:23 -07:00
2021-11-08 01:49:05 -08:00
```sh
chmod +x setup.sh
./setup.sh && sudo make install
```
2021-07-16 05:13:09 -07:00
2021-11-08 01:49:05 -08:00
The setup process consists of:
2021-11-08 01:49:05 -08:00
- 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
2021-11-08 01:49:05 -08:00
Running `sudo make install` copies the `ani-cli` as well as the `aniwrapper` scripts to `/usr/local/bin/`
2021-06-09 05:25:23 -07:00
2021-11-08 01:49:05 -08:00
# Usage
2021-06-09 05:25:23 -07:00
2021-11-08 01:49:05 -08:00
## aniwrapper
2021-11-08 00:37:08 -08:00
# Launch aniwrapper menu
aniwrapper
2021-11-08 01:49:05 -08:00
## ani-cli Script
# watch anime
ani-cli <query>
# download anime
ani-cli -d <download_directory>
# resume watching anime
ani-cli -H
2021-06-09 05:25:23 -07:00
# list searched anime
ani-cli -l
2021-06-10 03:48:06 -07:00
2021-11-08 00:37:08 -08:00
# add to playlist
ani-cli -a
2021-06-18 00:00:24 -07:00
2021-11-08 00:37:08 -08:00
# delete from playlist
ani-cli -d
2021-11-08 00:37:08 -08:00
# playlist mode
ani-cli -P
2021-11-08 00:37:08 -08:00
Multiple episodes can be viewed/downloaded by giving the episode range like so
2021-11-08 00:37:08 -08:00
Choose episode [1-13]: 1 6
2021-06-09 05:25:23 -07:00
2021-11-08 00:37:08 -08:00
This would open/download episodes 1 2 3 4 5 6
2021-11-08 01:49:05 -08:00
# Screenshots
<div align="center">
Aniwrapper Main Menu
![aniwrapper frontpage](./screenshots/aniwrapper_home.png)
Aniwrapper Streaming Menu
![aniwrapper streaming options](./screenshots/aniwrapper_stream.png)
2021-11-08 09:44:49 -08:00
More to come soon... maybe
2021-11-08 01:49:05 -08:00
</div>