Compare commits

...

2 Commits

Author SHA1 Message Date
ksyasuda
6e5b3c463a fix script not quitting when escaping from play from file mode 2022-02-16 23:58:20 -08:00
ksyasuda
01fe1bb68a apply autoformatter to markdown files 2022-02-16 23:57:43 -08:00
4 changed files with 37 additions and 37 deletions

View File

@ -33,18 +33,18 @@ This tool scrapes the site [gogoanime](https://gogoanime.cm).
- [Introduction](#introduction) - [Introduction](#introduction)
- [MPV Extension - Skip Intro Script](#mpv-extension---skip-intro-script) - [MPV Extension - Skip Intro Script](#mpv-extension---skip-intro-script)
- [Installing](#installing) - [Installing](#installing)
- [Manual Install](#manual-install) - [Manual Install](#manual-install)
- [Aniwrapper Menus](#aniwrapper-menus) - [Aniwrapper Menus](#aniwrapper-menus)
- [Dealing with conflicting search queries / rofi grabbing from search list](#dealing-with-conflicting-search-queries--rofi-grabbing-from-search-list) - [Dealing with conflicting search queries / rofi grabbing from search list](#dealing-with-conflicting-search-queries--rofi-grabbing-from-search-list)
- [Usage](#usage) - [Usage](#usage)
- [aniwrapper](#aniwrapper-1) - [aniwrapper](#aniwrapper-1)
- [Option 1: Streaming](#option-1-streaming) - [Option 1: Streaming](#option-1-streaming)
- [Option 2: Download](#option-2-download) - [Option 2: Download](#option-2-download)
- [Option 3: Continue](#option-3-continue) - [Option 3: Continue](#option-3-continue)
- [Option 4: Play from File](#option-4-play-from-file) - [Option 4: Play from File](#option-4-play-from-file)
- [Option 5: Sync History](#option-5-sync-history) - [Option 5: Sync History](#option-5-sync-history)
- [Option 6: Choose Theme](#option-6-choose-theme) - [Option 6: Choose Theme](#option-6-choose-theme)
- [ani-cli](#ani-cli) - [ani-cli](#ani-cli)
- [Themes](#themes) - [Themes](#themes)
<!-- markdown-toc end --> <!-- markdown-toc end -->
@ -60,13 +60,13 @@ script for MPV during setup if it is not already installed_
Upon activation, the skip-intro script will try its best to skip the Upon activation, the skip-intro script will try its best to skip the
episode introduction by skipping to the next moment of silence in the video episode introduction by skipping to the next moment of silence in the video
- If the video has not pre-loaded past the introduction, the script will not - If the video has not pre-loaded past the introduction, the script will not
know what to do. Press `TAB` again to stop the script until the video know what to do. Press `TAB` again to stop the script until the video
has loaded enough, or just manually skip past the intro. has loaded enough, or just manually skip past the intro.
- If the video does not have a pause in audio (or a significant enough drop in - If the video does not have a pause in audio (or a significant enough drop in
audio volume) between the end of the introduction and the beginning of the audio volume) between the end of the introduction and the beginning of the
video/episode, then the script may fail and skip to a random point in the video/episode, then the script may fail and skip to a random point in the
video video
# Installing # Installing
@ -125,7 +125,7 @@ In this program, rofi is configured to search with case insensitivity and select
Once your history starts filling up, it becomes progressively more difficult to form unique search queries Once your history starts filling up, it becomes progressively more difficult to form unique search queries
![selection with dash](https://imgur.com/vSyaoG6.png) ![selection with dash](https://imgur.com/vSyaoG6.png)
A workaround for this is to append a dash ` -` to the end of the search query<br/> A workaround for this is to append a dash `-` to the end of the search query<br/>
The above output was produced by searching: `isekai -` The above output was produced by searching: `isekai -`
</div> </div>
@ -156,6 +156,9 @@ aniwrapper -T <path_to_config> # Specify custom rofi config
aniwrapper -v # Enable verbose logging aniwrapper -v # Enable verbose logging
``` ```
> Half-episodes (ex. saihate-no-paladin episode 7.5) are selectable, however they will not show up in the episodes list.
> To select half episodes add 'h' to the beginning for episodes like '7.5' -> 'h7' to select saihate-no-paladin episode 7.5
See [aniwrapper menus](docs/aniwrapper-menus.md) for more information about the menus used in the following options See [aniwrapper menus](docs/aniwrapper-menus.md) for more information about the menus used in the following options
### Option 1: Streaming ### Option 1: Streaming
@ -226,9 +229,9 @@ This option allows you to sync your search/watch history across devices. It quer
At the moment, the requirements are as follows: At the moment, the requirements are as follows:
- You must be able to `ssh` into the remote machine - You must be able to `ssh` into the remote machine
- The username must be the same across both devices - The username must be the same across both devices
- The `history.sqlite3` file must be in the default location: `$XDG_CONFIG_HOME/aniwrapper/history.sqlite3` - The `history.sqlite3` file must be in the default location: `$XDG_CONFIG_HOME/aniwrapper/history.sqlite3`
### Option 6: Choose Theme ### Option 6: Choose Theme

View File

@ -397,7 +397,7 @@ find_media() {
selection="$(rofi -dpi "$DPI" -dmenu -no-custom -async-pre-read 33 -config "$ROFI_CFG" \ selection="$(rofi -dpi "$DPI" -dmenu -no-custom -async-pre-read 33 -config "$ROFI_CFG" \
-l 15 -i -sep '|' -mesg "$(generate_span "Current directory: $inp")" -a "$watched" \ -l 15 -i -sep '|' -mesg "$(generate_span "Current directory: $inp")" -a "$watched" \
-p "Enter selection" -window-title 'aniwrapper' <<< "$inputlist")" -p "Enter selection" -window-title 'aniwrapper' <<< "$inputlist")"
lg "SELECTION: $selection" 1> /dev/stderr [ -z "$selection" ] && return 1
case "$selection" in case "$selection" in
Back | ../) Back | ../)
dotdotslash="${inp%/*}" dotdotslash="${inp%/*}"

View File

@ -5,7 +5,7 @@
.SH NAME .SH NAME
.PP .PP
aniwrapper - A rofi wrapper around ani-cli: a command-line tool to aniwrapper - A rofi wrapper around ani-cli: a command-line tool to
browser, download, and stream anime stream, download, and play anime
.SH SYNOPSIS .SH SYNOPSIS
.PP .PP
\f[B]aniwrapper\f[R] [-dhpqSv] [-t \f[I]theme\f[R] | -T \f[B]aniwrapper\f[R] [-dhpqSv] [-t \f[I]theme\f[R] | -T
@ -27,15 +27,12 @@ browser, download, and stream anime
.P .P
.PD .PD
\f[B]aniwrapper\f[R] -C \f[B]aniwrapper\f[R] -C
.PD 0
.P
.PD
.SH DESCRIPTION .SH DESCRIPTION
.PP .PP
\f[B]aniwrapper\f[R] is a wrapper around a modified version of \f[B]aniwrapper\f[R] is a wrapper around a modified version of
\f[B]ani-cli\f[R], which uses \f[B]rofi\f[R] to get user input and \f[B]ani-cli\f[R], which uses \f[B]rofi\f[R] to get user input and
control the program flow, as well as a a \f[B]sqlite3\f[R] database for control the program flow, as well as a a \f[B]sqlite3\f[R] database for
tracking search/watch history. tracking search/watch history
.SH OPTIONS .SH OPTIONS
.PP .PP
Defaults: Defaults:
@ -122,4 +119,4 @@ notifications)
Written by Kyle Yasuda <ksyasuda@umich.edu> Written by Kyle Yasuda <ksyasuda@umich.edu>
.PP .PP
Original code based on pystardust\[cq]s \f[I]ani-cli\f[R] Original code based on pystardust\[cq]s \f[I]ani-cli\f[R]
(https://github.com/pystardust/ani-cli) (<https://github.com/pystardust/ani-cli>)

View File

@ -8,29 +8,29 @@ date: February 4, 2022
# NAME # NAME
aniwrapper - A rofi wrapper around ani-cli: a command-line tool to browser, download, and stream anime aniwrapper - A rofi wrapper around ani-cli: a command-line tool to stream, download, and play anime
# SYNOPSIS # SYNOPSIS
**aniwrapper** [-dhpqSv] [-t _theme_ | -T *config_path*] [*query*]\ **aniwrapper** [-dhpqSv] [-t _theme_ | -T _config_path_] [_query_]\
**aniwrapper** -f _directory_path_ [-t _theme_ | -T *config_path*] [-pSv] [*query*]\ **aniwrapper** -f _directory_path_ [-t _theme_ | -T _config_path_] [-pSv] [_query_]\
**aniwrapper** -c [-dhpqSv] [*query*]\ **aniwrapper** -c [-dhpqSv] [_query_]\
**aniwrapper** -Q _query_\ **aniwrapper** -Q _query_\
**aniwrapper** -C\ **aniwrapper** -C
# DESCRIPTION # DESCRIPTION
**aniwrapper** is a wrapper around a modified version of **ani-cli**, which uses **aniwrapper** is a wrapper around a modified version of **ani-cli**, which uses
**rofi** to get user input and control the program flow, as well as a **rofi** to get user input and control the program flow, as well as a
a **sqlite3** database for tracking search/watch history. a **sqlite3** database for tracking search/watch history
# OPTIONS # OPTIONS
Defaults: Defaults:
- **rofi** enabled - **rofi** enabled
- aniwrapper.rasi theme - aniwrapper.rasi theme
- best quality - best quality
**-c** **-c**
: Enable command-line mode (disable **rofi**) : Enable command-line mode (disable **rofi**)
@ -103,4 +103,4 @@ Defaults:
Written by Kyle Yasuda <ksyasuda@umich.edu> Written by Kyle Yasuda <ksyasuda@umich.edu>
Original code based on pystardust's _ani-cli_ (https://github.com/pystardust/ani-cli) Original code based on pystardust's _ani-cli_ (<https://github.com/pystardust/ani-cli>)