make yes default option autoplay prompt

This commit is contained in:
ksyasuda 2022-06-04 14:26:36 -07:00
parent 870920cbf5
commit 8d6acddea6

View File

@ -763,8 +763,9 @@ continue_watching() {
-p "Continue watching?" -window-title 'aniwrapper' <<< "Yes|No")
else
inf "Continue watching $selection_id?"
prompt "Next episode -> $((episode + 1)) [y/n]"
prompt "Next episode -> $((episode + 1)) [Y/n]"
read -r choice
[ -z "$choice" ] && choice="y"
fi
[[ "$choice" =~ ^(y|Y|Yes)$ ]] && return 0 || return 1