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

Fixes for bug #491 #494

Merged
merged 4 commits into from
Feb 6, 2022
Merged
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
9 changes: 7 additions & 2 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# version number
VERSION="1.6.5"
VERSION="1.6.6"


# history file path
Expand Down Expand Up @@ -512,6 +512,7 @@ while getopts 'viq:dp:chDUVa:' OPT; do
;;
d)
is_download=1
select_first=1
;;
a)
ep_choice_to_start=$OPTARG
Expand All @@ -523,6 +524,7 @@ while getopts 'viq:dp:chDUVa:' OPT; do
p)
is_download=1
download_dir=$OPTARG
select_first=1
;;
i)
player_fn="iina"
Expand Down Expand Up @@ -570,7 +572,10 @@ case $scrape in
prompt "Search Anime"
query="$REPLY $REPLY2"
else
[ -n "$ep_choice_to_start" ] && select_first=1
if [ -n "$ep_choice_to_start" ] ; then
REPLY=1
select_first=1
fi
query=$*
fi
search_results=$(search_anime "$query")
Expand Down