mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
update readme and change setsid to nohup
change setsid to nohup for mac compatibility on ani-cli
This commit is contained in:
parent
737d066ced
commit
c72b3fdece
34
README.md
34
README.md
@ -16,9 +16,10 @@
|
||||
- [Introduction](#introduction)
|
||||
- [Setup](#setup)
|
||||
- [Dependencies](#dependencies)
|
||||
- [Arch Linux](#arch-linux)
|
||||
- [Installing](#installing)
|
||||
- [`aniwrapper` Menus](#aniwrapper-menus)
|
||||
- [Arch Linux](#arch-linux)
|
||||
- [Manual Install](#manual-install)
|
||||
- [Aniwrapper Menus](#aniwrapper-menus)
|
||||
- [Search Anime](#search-anime)
|
||||
- [Anime Selection](#anime-selection)
|
||||
- [Episode Selection](#episode-selection)
|
||||
@ -28,6 +29,7 @@
|
||||
- [Option 2: Download](#option-2-download)
|
||||
- [Option 3: Continue](#option-3-continue)
|
||||
- [Option 4: Playlist](#option-4-playlist)
|
||||
- [Option 5: Sync History](#option-5-sync-history)
|
||||
- [ani-cli Script](#ani-cli-script)
|
||||
- [Screenshots](#screenshots)
|
||||
|
||||
@ -72,41 +74,57 @@ These are the minimum dependences required to run `aniwrapper`
|
||||
- meh.rasi (installed in setup.sh)
|
||||
- sqlite3
|
||||
|
||||
## Installing
|
||||
|
||||
### Arch Linux
|
||||
|
||||
`aniwrapper-git` is available on the AUR for Arch users
|
||||
|
||||
```sh
|
||||
paru -S aniwrapper-git
|
||||
or
|
||||
yay -S aniwrapper-git
|
||||
```
|
||||
|
||||
### Manual Install
|
||||
|
||||
To install manually, make sure the dependencies are installed first
|
||||
|
||||
The folowing command can be used on Arch Linux to ensure the prereqisites are installed
|
||||
|
||||
```sh
|
||||
pacman -S --needed grep curl sed mpv ffmpeg rofi sqlite3
|
||||
```
|
||||
|
||||
## Installing
|
||||
Next, clone the Git repository and switch directories into the cloned repo
|
||||
|
||||
```sh
|
||||
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
|
||||
After switching into the `aniwrapper` directory, run the following commands to set up and install the script
|
||||
|
||||
```sh
|
||||
chmod +x setup.sh
|
||||
./setup.sh && sudo make install
|
||||
```
|
||||
|
||||
## `aniwrapper` Menus
|
||||
# Aniwrapper Menus
|
||||
|
||||
There are several menus used to drive the program forward
|
||||
|
||||
### Search Anime
|
||||
## Search Anime
|
||||
|
||||
The first menu consists of a search box and a list of anime titles corresponding to past valid searches. Choose an option from the menu, or enter in a unique search query to search for a new anime. The result from this will be used to query against `gogoanime` and return similar named anime
|
||||
|
||||
### Anime Selection
|
||||
## Anime Selection
|
||||
|
||||
The next menu is where you select the anime to watch from a narrowed down list. Elements that have a blue border and text color indicate which anime have been watched before
|
||||
|
||||
- _In the future, I'd like to make it so if you select an option from the list of previously searched anime, then it will skip this and go on to episode selection_
|
||||
|
||||
### Episode Selection
|
||||
## Episode Selection
|
||||
|
||||
In the episode selection menu, you can select an individual episode from the list, provide a single episode, or provide a range of episodes as two space separated integers `start_episode end_episode`. Like in the previous menu, any element with a blue border and text-color indicates that episode has been watched before
|
||||
|
||||
|
3
ani-cli
3
ani-cli
@ -492,7 +492,8 @@ open_episode() {
|
||||
# s/^${selection_id}\t[0-9]+/${selection_id}\t$((episode + 1))/
|
||||
# " "$logfile" >"${logfile}.new" && mv "${logfile}.new" "$logfile"
|
||||
|
||||
setsid -f $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1
|
||||
# setsid -f $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1
|
||||
nohup $player_fn --http-header-fields="Referer: $dpage_url" "$video_url" >/dev/null 2>&1 &
|
||||
else
|
||||
printf "Downloading episode $episode ...\n"
|
||||
printf "%s\n" "$video_url"
|
||||
|
Loading…
Reference in New Issue
Block a user