mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-12-07 14:53:37 -08:00
add menu and option for selecting provider to scrape (#14)
This commit is contained in:
6
ani-cli
6
ani-cli
@@ -446,7 +446,7 @@ parse_args() {
|
||||
is_download=0
|
||||
is_resume=0
|
||||
is_autoplay=0
|
||||
while getopts 'ad:Hsvq:cf:t:T:CQ:D:Sp:rR' OPT; do
|
||||
while getopts 'ad:Hsvq:cf:t:T:CQ:D:Sp:P:rR' OPT; do
|
||||
case "$OPT" in
|
||||
a)
|
||||
is_autoplay=1
|
||||
@@ -531,6 +531,10 @@ parse_args() {
|
||||
die "ERROR: $PLAYER_FN does not exist"
|
||||
fi
|
||||
;;
|
||||
P)
|
||||
select_provider="$OPTARG"
|
||||
((select_provider < 1 || select_provider > 7)) && die "Invalid provider: $select_provider"
|
||||
;;
|
||||
*)
|
||||
inf "Invalid option"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user