File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- version_number=" 4.9.6 "
3
+ version_number=" 4.9.7 "
4
4
5
5
# UI
6
6
@@ -274,7 +274,9 @@ download() {
274
274
275
275
play_episode () {
276
276
[ " $log_episode " = 1 ] && [ " $player_function " != " debug" ] && [ " $player_function " != " download" ] && command -v logger > /dev/null && logger -t ani-cli " ${allanime_title}${ep_no} "
277
- [ " $skip_intro " = 1 ] && skip_flag=" $( ani-skip -q " $mal_id " -e " $ep_no " ) "
277
+ skip_flag=" $( ani-skip -q " $mal_id " -e " $ep_no " ) "
278
+ skip_flag_arr=($skip_flag )
279
+ [ " $skip_intro " = 0 ] && skip_flag=${skip_flag_arr[0]}
278
280
[ -z " $episode " ] && get_episode_url
279
281
# shellcheck disable=SC2086
280
282
case " $player_function " in
440
442
[ " $use_external_menu " = " 1" ] && multi_selection_flag=" ${ANI_CLI_MULTI_SELECTION:- " -multi-select" } "
441
443
printf " \33[2K\r\033[1;34mChecking dependencies...\033[0m\n"
442
444
dep_ch " curl" " sed" " grep" || true
443
- [ " $skip_intro " = 1 ] && (dep_ch " ani-skip" || true)
444
445
if [ -z " $ANI_CLI_NON_INTERACTIVE " ]; then dep_ch fzf || true ; fi
445
446
case " $player_function " in
446
447
debug) ;;
@@ -492,7 +493,7 @@ case "$search" in
492
493
[ -z " $ep_no " ] && exit 1
493
494
;;
494
495
esac
495
- [ " $skip_intro " = 1 ] && mal_id=" $( ani-skip -q " ${skip_title:- ${title} } " ) "
496
+ (dep_ch " ani-skip " || true) && mal_id=" $( ani-skip -q " ${skip_title:- ${title} } " ) "
496
497
497
498
# moves the cursor up one line and clears that line
498
499
tput cuu1 && tput el
You can’t perform that action at this time.
0 commit comments