Skip to content

Commit

Permalink
fix: non-interactive selection (#494)
Browse files Browse the repository at this point in the history
* Fixed non-interactive anime selection (bug #491)

* Fixed non-interactive episode selection (bug #491)

* Bumped version number

* Fixed indentation (mixed spaces and tabs)
  • Loading branch information
margual56 committed Feb 6, 2022
1 parent de02216 commit 720a806
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit 720a806

Please sign in to comment.