mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
make autoplay stop after last episode
This commit is contained in:
parent
e5772469c7
commit
f218b34e21
2
ani-cli
2
ani-cli
@ -811,7 +811,7 @@ open_episode() {
|
|||||||
if ((is_autoplay == 1)); then
|
if ((is_autoplay == 1)); then
|
||||||
lg "Waiting for video to finish playing..."
|
lg "Waiting for video to finish playing..."
|
||||||
wait "$PID"
|
wait "$PID"
|
||||||
if continue_watching; then
|
if ((episode + 1 <= LAST_EP_NUMBER)) && continue_watching; then
|
||||||
open_episode "$anime_id" "$((episode + 1))" "$ddir"
|
open_episode "$anime_id" "$((episode + 1))" "$ddir"
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user