From e07fafc6d820620f863c2f9f8dc9f527a17177e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guti=C3=A9rrez=20Alonso?= Date: Sat, 5 Feb 2022 23:36:10 +0100 Subject: [PATCH 1/4] Fixed non-interactive anime selection (bug #491) --- ani-cli | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ani-cli b/ani-cli index 1c37b433..eaf4c672 100755 --- a/ani-cli +++ b/ani-cli @@ -512,6 +512,7 @@ while getopts 'viq:dp:chDUVa:' OPT; do ;; d) is_download=1 + select_first=1 ;; a) ep_choice_to_start=$OPTARG @@ -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" From 0fd9b7915d6f126fdc245caae90561140daab717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guti=C3=A9rrez=20Alonso?= Date: Sat, 5 Feb 2022 23:37:45 +0100 Subject: [PATCH 2/4] Fixed non-interactive episode selection (bug #491) --- ani-cli | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index eaf4c672..d5039d10 100755 --- a/ani-cli +++ b/ani-cli @@ -572,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") From aaf5e09009d6952b1ab400008fa69d38b6a81320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guti=C3=A9rrez=20Alonso?= Date: Sat, 5 Feb 2022 23:38:37 +0100 Subject: [PATCH 3/4] Bumped version number --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index d5039d10..c9cba44b 100755 --- a/ani-cli +++ b/ani-cli @@ -1,7 +1,7 @@ #!/bin/sh # version number -VERSION="1.6.5" +VERSION="1.6.6" # history file path From a53aea1f3489cabdc3cfdf21d8c31acca075f712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guti=C3=A9rrez=20Alonso?= Date: Sun, 6 Feb 2022 16:32:08 +0100 Subject: [PATCH 4/4] Fixed indentation (mixed spaces and tabs) --- ani-cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ani-cli b/ani-cli index c9cba44b..909072d9 100755 --- a/ani-cli +++ b/ani-cli @@ -573,8 +573,8 @@ case $scrape in query="$REPLY $REPLY2" else if [ -n "$ep_choice_to_start" ] ; then - REPLY=1 - select_first=1 + REPLY=1 + select_first=1 fi query=$* fi