Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: single selection for episode #1492

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
- [ ] `-s` syncplay works
- [ ] `-q` quality works
- [ ] `-v` vlc works
- [ ] `-e` select episode works
- [ ] `-e` (select episode) aka `-r` (range selection) works
- [ ] `-S` select index works
- [ ] `-r` range selection works
- [ ] `--skip` ani-skip works
- [ ] `--skip-title` ani-skip title argument works
- [ ] `--no-detach` no detach works
Expand All @@ -40,3 +39,4 @@
- Episode 0: Saenai Heroine no Sodatekata ♭
- Unicode: Saenai Heroine no Sodatekata ♭
- Non-whole episodes: Tensei shitara slime datta ken (ep. 24.5, ep. 24.9)
- The examples of the help text
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ A cli to browse and watch anime (alone AND with friends). This tool scrapes the
- [Tier 2: Windows, WSL, iOS, Steam Deck, FreeBSD](#tier-2-support-windows-wsl-ios-steam-deck-freebsd)
- [From Source](#installing-from-source)
- [Uninstall](#uninstall)
- [Completion](#completion)
- [bash](#bash)
- [zsh](#zsh)
- [Dependencies](#dependencies)
- [Ani-Skip](#ani-skip)
- [FAQ](#faq)
Expand Down Expand Up @@ -499,24 +496,6 @@ apk del grep sed curl fzf git aria2 ffmpeg ncurses

</details>

## Completion

### bash

To add tab completions using bash run the following command inside the ani-cli directory
```
cp _ani-cli-bash /path/to/your/completions
echo "source /path/to/your/completions/_ani-cli-bash" >> ~/.bashrc
```

### zsh

To add tab completions using zsh run the following command inside the ani-cli directory
```
cp _ani-cli-zsh /path/to/your/completions
echo "source /path/to/your/completions/_ani-cli-zsh" >> ~/.zshrc
```

## Dependencies

- grep
Expand Down Expand Up @@ -574,4 +553,4 @@ Ani-skip uses the external lua script function of mpv and as such – for now
* [doccli](https://github.com/TowarzyszFatCat/doccli): A cli to watch anime with POLISH subtitles (Python)
* [GoAnime](https://github.com/alvarorichard/GoAnime): A CLI tool to browse, play, and download anime in Portuguese(Go)
* [Curd](https://github.com/Wraient/curd): A CLI tool to watch anime with Anilist, Discord RPC, Skip Intro/Outro/Filler/Recap (Go)
- [FastAnime](https://github.com/Benex254/FastAnime): browser anime experience from the terminal (Python)
* [FastAnime](https://github.com/Benex254/FastAnime): browser anime experience from the terminal (Python)
4 changes: 2 additions & 2 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.9.9"
version_number="4.10.0"

# UI

Expand All @@ -26,7 +26,7 @@ nth() {
line_start=$(printf "%s" "$line" | head -n1)
line_end=$(printf "%s" "$line" | tail -n1)
[ -n "$line" ] || exit 1
if [ -z "$multi_flag" ]; then
if [ -z "$multi_flag" ] || [ "$line_start" -eq "$line_end" ]; then
printf "%s" "$stdin" | grep -E '^'"${line}"'($|[[:space:]])' | cut -f2,3 || exit 1
else
printf "%s" "$stdin" | sed -n '/^'"${line_start}"'$/,/^'"${line_end}$"'/p' || exit 1
Expand Down
Loading